Skip to content
XXE Write-up Intermediate

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.

Nikhil Follow

Published on medium.com

{{media:0}}

Nik srivastava, on medium.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 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

  1. Obtain the WSDL file from the service endpoint.
  2. Parse the WSDL and send a request to the SOAP service.
  3. Inject a classic XXE payload to test for file disclosure.
  4. Set up an external DTD and an FTP server to receive file contents.
  5. Send a final XXE payload referencing the external DTD.
  6. 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.

More by Nikhil

View all

6 more disclosed reports, best first.

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.