Skip to content
XXE Write-up Intermediate

Exploiting Out-Of-Band XXE on Wildfire

The application accepted XML input via the WebDAV LOCK method and parsed it with an XML parser that resolved external entities. An attacker could exploit this to read files on the server and exfiltrate sensitive data such as backup files, configuration files, SSH keys, and access logs.

dhiyaneshgeek.github.io

Published on dhiyaneshgeek.github.io

In this blog ,i will cover one of the interesting vulnerability Out-Of-Band XXE via HTTP LOCK Method that i found during the Red Teaming Engagement in a Product Based Company and exploited the vulnerability at a Large Scale.

Dhiyaneshwaran, on dhiyaneshgeek.github.io

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 used by the WebDAV LOCK method was configured to resolve external entities, allowing an attacker to define entities that read local files and send them to an external server.

Impact

The XXE flaw could allow an attacker to read files on the application server, interact with back-end or external systems, and view configuration files.

What the attacker needed

WebDAV LOCK method enabled; XML parser resolves external entities; attacker-controlled server for DTD hosting

How it was found

  1. Intercept the login request using a client-side proxy.
  2. Check for different HTTP methods enabled in the application by using OPTIONS.
  3. Remove login.jsp and supply a non-existing value to see the allowed HTTP methods.
  4. Try the PUT method, which returned 403 forbidden, then try the LOCK method, which returned XML data.
  5. Test for OOB-XXE with a basic payload and observe HTTP and DNS hits from the server.
  6. Set up an environment with a hosted DTD file and send a request body to the vulnerable URL to exfiltrate files.

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 these external entities, an attacker can make the server fetch a file from its own filesystem or send data to an attacker-controlled server. This is called XXE (XML External Entity) injection, and here it was 'out-of-band' because the stolen data was sent to the attacker's server rather than shown in the response.

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.