web-04-xxe

Installation
SKILL.md

Full Methodology

XML External Entity (XXE) Injection

Shortcut

  • Find data entry points that you can use to submit XML data.
  • Determine whether the entry point is a candidate for a classic or blind XXE. The endpoint might be vulnerable to classic XXE if it returns the parsed XML data in the HTTP response. If the endpoint does not return results, it might still be vulnerable to blind XXE, and you should set up a callback listener for your tests.
  • Try out a few test payloads to see if the parser is improperly configured. In the case of classic XXE, you can check whether the parser is processing external entities. In the case of blind XXE, you can make the server send requests to your callback listener to see if you can trigger outbound interaction.
  • Try to exfiltrate a common system file, like /etc/hostname.
  • You can also try to retrieve some more sensitive system files, like /etc/shadow or ~/.bash_history.
  • If you cannot exfiltrate the entire file with a simple XXE payload, try to use an alternative data exfiltration method.
  • See if you can launch an SSRF attack using the XXE.

Mechanisms

XML External Entity (XXE) is a vulnerability that occurs when XML parsers process external entity references within XML documents. XXE attacks target applications that parse XML input and can lead to:

Installs
1
GitHub Stars
6
First Seen
Nov 16, 2026