Skip to content
XXE Write-up Intermediate

XXE Case Studies

The author describes several XXE vulnerabilities found in bug bounty programs, where XML input in parameters or uploaded files (proprietary app files, KML, PDF) was parsed with external entity support. An attacker could read local files or perform SSRF, such as internal port scanning.

cinzinga Follow

Published on cinzinga.com

As it has been some time since my last blog post, I decided I would set aside some time to write one now. The topic of this blog post is inspired by a bug I found earlier this morning on a bug bounty program.

cinzinga, on cinzinga.com

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 resolve external entities, allowing attacker-controlled XML to read local files or make network requests.

What the attacker needed

XML input accepted by the application; Parser allows external entities

How it was found

  1. Find a parameter or file upload that accepts XML.
  2. Insert an XXE payload that defines an external entity referencing a local file or internal URL.
  3. For blind cases, host a malicious DTD that exfiltrates file contents to an attacker server.
  4. Submit the request or upload the file and observe the response or attacker server logs.

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 External Entity (XXE) is a flaw where an application accepts XML input but allows special instructions called entities to fetch data from the server's filesystem or internal network. Here, the author found several places where XML was accepted (a parameter, uploaded app files, KML maps, PDF resumes) and used those entities to read files like C:\Windows\win.ini or /etc/passwd, or to scan internal ports.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.