> 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-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-xml-external-entity-injection-xxe/xxe-user-enumeration-pentesting-web.md).

# Énumération d’utilisateurs via XXE

## XXE (injection d’entités externes XML) :

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

#### Analyse du code source (structure XML) interceptée avec Burp Suite

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

<figure><img src="/files/215cadd512e35cc3bb55079957320f2cb37aeee1" alt=""><figcaption></figcaption></figure>

#### Tentative d’attaque XXE (injection d’entités externes XML)

* Modification de la méthode de la requête de GET vers POST.

<figure><img src="/files/7f9592de276873a7c72c001bca4c0f71fb65c8b9" alt=""><figcaption></figcaption></figure>

* Essai d’injection d’un modèle d’imprimante XXE dans la requête POST.

<pre class="language-xml"><code class="lang-xml">&#x3C;creds>
<strong>	&#x3C;customer>
</strong>		Jordan
	&#x3C;/customer>
	&#x3C;password>
		jordan123
	&#x3C;/password>
&#x3C;/creds>
</code></pre>

* Observation de la façon dont le serveur interprète le modèle d’imprimante XXE.

<figure><img src="/files/3744a8180bcf8be3688d64fed51b437e7f8ccceb" alt=""><figcaption></figcaption></figure>

* Pour accéder au système de fichiers, nous devons créer une nouvelle **entité**, par exemple, "myFile", comme suit : `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>` Ensuite, dans une variable, nous devrions publier le résultat avec "**/\&myFile**" comme ceci :

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

#### Identification d’un utilisateur "ftpUserULTRA

<figure><img src="/files/563addb0d1e3ed3c16bdeca3777012792b17fa3c" 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-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-xml-external-entity-injection-xxe/xxe-user-enumeration-pentesting-web.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.
