Skip to content
XXE Write-up Intermediate

zeropwn/Axway SecureTransport 5.x Unauthenticated XXE

The resetPassword REST API endpoint of Axway SecureTransport 5.x parses XML input without disabling external entities, allowing an unauthenticated attacker to inject XML and potentially read local files, cause denial of service, or perform SSRF. The report demonstrates the vulnerability through error messages but notes that most installations block outbound requests, limiting exploitation.

gist.github.com

Published on gist.github.com

Clone this repository at <script src="https://gist.github.com/zeropwn/59f17727dfaba239b0ace6f33b752974.js"></script> - Save zeropwn/59f17727dfaba239b0ace6f33b752974 to your computer and use it in GitHub Desktop.

The author, on gist.github.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 used by the resetPassword endpoint does not disable DOCTYPE declarations and external entities, allowing XML External Entity injection.

Impact

An attacker could potentially read local files, cause denial of service, or perform SSRF, but most installations have firewalls blocking outgoing requests, limiting exploitation.

What the attacker needed

Unauthenticated access to the API; Referer header set; Content-Type: application/xml; outbound requests not blocked (for SSRF)

The fix

The vulnerability should be fixed by disabling DOCTYPE declarations and external general entities in the XML parser.

How it was found

  1. Send a POST request to /api/v1.0/myself/resetPassword with Content-Type application/xml and a Referer header, containing malformed XML to trigger a parser error.
  2. Send a request with a DOCTYPE declaration defining an entity that references a local file, and observe the error message confirming entity declaration.
  3. Attempt to exploit by defining an external entity pointing to an internal URL or local DTD, but note that outbound requests are often blocked.

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 is a data format that can include special instructions called entities. If a server processes XML without disabling these, an attacker can make the server fetch files or URLs. Here, the password reset endpoint accepted XML and showed error messages that proved it was processing entities, which could let an attacker read files or make the server send requests.

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.