SOAP- Based Unauthenticated Out-of-Band XML External Entity (OOB-XXE) in a Help Desk Software
A SOAP web service accepted XML with external entity declarations, allowing an attacker to read local files. The author demonstrated out-of-band extraction of file contents via an FTP server.
{{media:0}}
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 and allowed out-of-band data exfiltration.
Impact
An attacker could read arbitrary files from the server, potentially exposing sensitive information.
What the attacker needed
Access to the SOAP service; attacker-controlled server for DTD and FTP
How it was found
- Obtain the WSDL file from the service endpoint.
- Parse the WSDL and send a request to the SOAP service.
- Inject a classic XXE payload to test for file disclosure.
- Set up an external DTD and an FTP server to receive file contents.
- Send a final XXE payload referencing the external DTD.
- Observe the file contents arriving on the FTP server.
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 files on the server. If the server processes these without restriction, an attacker can make it read sensitive files and send their contents elsewhere.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.