Blind XXE with OOB Interaction via XML Parameter Entities
The application's XML parser processed external entities in the stock check request, allowing an attacker to trigger out-of-band DNS and HTTP interactions. This confirmed a blind XXE vulnerability, though no data exfiltration was demonstrated.
osintteam.blog
Published on osintteam.blog
Today, we’ll be learning about a vulnerability that is more like the real-world — a vulnerability that is blind.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the XML parser was configured to allow external entity resolution, including parameter entities, without restricting out-of-band interactions.
Impact
An attacker could confirm the presence of blind XXE and potentially use it for server-side request forgery or data exfiltration, though this write-up only demonstrates out-of-band interaction.
What the attacker needed
Access to the stock check feature; ability to send XML requests; a Burp Collaborator server
The fix
The XML parser should be configured to disable external entity processing and parameter entities, or to restrict out-of-band interactions.
How it was found
- Navigate to a product page and use the stock check feature to capture the request.
- Send the request to Burp Repeater and observe the base response.
- Insert a test XML entity payload in the productId and storeId parameters and note the parsing error.
- Generate a Burp Collaborator payload and place the XML payload outside the stockCheck element, referencing the Collaborator subdomain.
- Send the request and poll Collaborator to see DNS and HTTP interactions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
XML allows defining entities that can point to external resources. If a server parses XML without disabling external entities, an attacker can make the server fetch a URL they control, which can leak information or confirm the vulnerability. Here, the attacker used a parameter entity to force the server to contact a Burp Collaborator server, proving the flaw.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.