XML External Entity (XXE) Injection
Example XML Document:
<?xml version="1.0" encoding="UTF-8"?>
<email>
<date>01-01-2022</date>
<sender>john@example.com</sender>
<body>Hello, please send the invoice.</body>
</email>
XML Document Type Definition (DTD)
Methodology
XXE Attacks
Test Vulnerability
Reading Sensitive Files
PHP applications.
Remote Code Execution with XXE
Error Based XXE
Error Based using DTD file
XInclude XXE
XXE via SVG Files
Blind XXE with out-of-band interaction
Normal out-of-band interaciton
XML parameter entities
Exfiltrate data using a malicious external DTD
DOS Attack
XXEInjector
Tools
Last updated