XXE in DoD website that may lead to RCE
An XML endpoint on a Department of Defense website parsed user-supplied XML with external entities enabled. An attacker could send a crafted XML request to read files from the server's operating system.
- Triaged in 3 days
- Fixed in 55 days
- Disclosed after 2.4 years
Summary: XXE in https://█████
Description: A malicious user can modify an XML-based request to include XML content that is then parsed locally.
Impact
An attacker can use an XML external entity vulnerability to send specially crafted unauthorized XML requests, which will be processed by the XML parser. The attacker can use an XML external entity vulnerability for getting unauthorised access to the OS file system.
PoC
POST /PSIGW/PeopleSoftServiceListeningConnector HTTP/1.1
Host: https://███
Content-type: text/xml
Content-Length: 50
<!DOCTYPE a PUBLIC "-//B/A/EN" "HELLO_XXE"><a></a>
Not written yet. The AI write-up for this report 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 instead of disabling them.
What the attacker needed
Network access to the endpoint
How it was found
- Send a POST request to the PeopleSoft listening connector endpoint with an XML content type.
- Include a document type definition that declares an external entity.
- The parser is expected to process the external entity.
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 report has not been written yet. The Original tab links to the source.
XML is a data format that can include special instructions called entities. Some parsers will fetch a file or URL when they see an entity, which is dangerous. Here the server did that, so a malicious request could make it read local files.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.