Tips

XML external entities (XXE) tips

XML external entities make an XML parser fetch files or URLs named in the document, leading to file disclosure or server-side requests. Any endpoint that parses XML can be affected, including SVG, Office files and SAML.

Published tips, newest first. Payloads and commands are shown as plain text.

  • Revive Adserver -> VAST XML Injection -> Hijacked Tracking

    How -> 1. Advertiser adds XML syntax to its own video creative 2. Unescaped attributes and CDATA terminators break the VAST 3. Injected TrackingEvents replace real tracking URLs Fix -> CVE-2026-133206 #bugbountytips pic.…

    XML external entities (XXE)Exploitation

XML external entities (XXE): how to hunt it

Where to look

  • Endpoints that accept XML, and JSON endpoints that also take XML when the Content-Type changes.
  • Uploads of SVG, DOCX, XLSX and other formats built on XML.
  • SAML and SOAP messages, and XML feeds and imports.
  • Blind cases, confirmed with an external DTD on a server you control.

What proves it

Show the contents of a harmless file, or a request your entity made to your server, from a document you sent, and never send an entity expansion bomb.

Read further

Writeups on XML external entities (XXE), by hunters and researchers, most with a short summary.

Related classes