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

# XXE-Benutzerenumeration

## XXE (XML External Entity Injection):

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

#### Quellcode-Analyse (XML-Struktur) mit Burp Suite abgefangen

<figure><img src="/files/017cc57d2ac881ea2fe2e1791993dd2dc6d09b24" alt=""><figcaption></figcaption></figure>

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

#### Angriffversuch XXE (XML External Entity Injection)

* Änderung der Anfrage-Methode von GET zu POST.

<figure><img src="/files/1369f6e427419eeaef05ccff47583b13b57b52f8" alt=""><figcaption></figcaption></figure>

* Versuch einer XXE-Injektion eines Druckermodells in der POST-Anfrage.

<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>

* Beobachtung der Art und Weise, wie der Server das XXE-Druckermodell interpretiert.

<figure><img src="/files/8da123eb5a433e3846a9e1332eba54b892d3f0e3" alt=""><figcaption></figcaption></figure>

* Um auf das Dateisystem zuzugreifen, sollten wir eine neue **Entität**erstellen, zum Beispiel „myFile“, wie folgt: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>` Dann sollten wir in einer Variablen das Ergebnis mit "**/\&myFile**" wie folgt:

<figure><img src="/files/3510550b97b2f410c40c1af57ca2239688e7d17b" alt=""><figcaption></figcaption></figure>

#### Identifizierung eines Benutzers "ftpUserULTRA

<figure><img src="/files/cc71fb6760d12141ce50ca990057debcec063ee8" 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-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.
