hunt-xxe
What it does
This skill tests whether XML parsers accept external entities, which can expose files or make server requests. It is for authorized testing of XML uploads, SOAP services and document import features.
When to use it
- βWhen an endpoint accepts XML, SOAP or SAML messages.
- βWhen a file upload such as DOCX, SVG or XLSX is parsed on the server.
- βWhen the server might fetch an external address while reading XML.
Skill link
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xxe/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur document import accepts DOCX files. Can you check whether the XML parser handles external entities unsafely in our authorized test?β
5 new skills a week. 1 minute to read.
How it works
The agent sends XML that asks the parser to load a test resource, then checks the response or a callback. It confirms the result before reporting.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Crown Jewel Targets
XXE is a critical-severity vulnerability that consistently pays at the top of bug bounty scales ($5,000β$30,000+) due to its direct path to sensitive data exfiltration and SSRF. Highest-value targets:
- Large enterprise platforms with XML-heavy backend integrations (finance, logistics, ride-sharing APIs)
- Domains with file-read capability β
/etc/passwd,/etc/shadow, internal config files, AWS metadata endpoints - Subdomains sharing backend infrastructure β one XXE endpoint can pivot to internal services across dozens of domains (as demonstrated by 26+ Uber domains via a single entry point)
- API gateways accepting XML content types β especially REST APIs that silently accept
Content-Type: application/xml - File upload features β SVG, DOCX, XLSX, PDF, PPTX parsers on the server side
- SAML/SSO endpoints β SAML assertions are XML-based and frequently vulnerable
- Office/document processing services β any feature that converts or processes user-supplied documents
Attack Surface Signals
URL Patterns
/api/v*/xml
/upload
/import
/parse
/convert
/saml/acs
/sso/saml
/feed
/rss
/sitemap
/webdav
/soap/*
/wsdl
/service.asmx
/xmlrpc
/graphql (multipart with XML)
Request/Response Headers
Content-Type: application/xml
Content-Type: text/xml
Content-Type: application/soap+xml
Content-Type: multipart/form-data β check file upload fields
Accept: application/xml
X-Content-Type-Options: (absent β good sign of loose parsing)
JavaScript Patterns (source recon)
// Look for in JS bundles
XMLSerializer
DOMParser
parseFromString
new ActiveXObject("Microsoft.XMLDOM")
$.parseXML(
xml2js
libxmljs
lxml
Tech Stack Signals
- Java stacks: Spring, Struts, JAX-WS β default XML parsers (SAX, DOM) are XXE-vulnerable without explicit hardening
- PHP:
simplexml_load_string(),DOMDocument::loadXML()β vulnerable by default pre-PHP 8 - Python:
lxml,xml.etree(safe by default),xml.sax(unsafe) - Ruby:
Nokogiriolder versions,REXML - Node.js:
xml2js,libxmljs,fast-xml-parser(older versions) - WSDL/SOAP services: Always test β legacy XML parsing virtually guaranteed
- File parsers: Apache POI (Java), python-docx, LibreOffice integrations
Step-by-Step Hunting Methodology
Map every XML entry point β Use Burp Suite passive scanner to flag all requests/responses with XML content types. Also intercept JSON endpoints and manually swap
Content-Typetoapplication/xmlwith equivalent XML body.Identify file upload features β Upload SVG, DOCX, XLSX, and observe if the server processes/renders content. These are often XML under the hood.
Attempt inline XXE (classic file read) β Replace the XML body with a basic entity test payload targeting
/etc/passwdorC:\Windows\win.ini. Observe if the value is reflected in the response.If no reflection, pivot to Blind OOB β Set up an OOB listener (Burp Collaborator, interactsh, or a self-hosted netcat server). Inject an external entity pointing to your callback URL. Confirm DNS/HTTP hit to validate the parser is making outbound connections.
Escalate Blind OOB to file exfiltration β Use a two-stage payload: first entity loads local file, second entity sends it OOB via HTTP parameter or DNS exfiltration.
Test SSRF pivot β Point the external entity at internal network addresses (
http://169.254.169.254/latest/meta-data/,http://10.0.0.1/,http://localhost:8080/admin). Look for differences in response timing or error messages.Test all subdomains sharing the same backend β If one subdomain is vulnerable, enumerate and test all others systematically. Shared backend infrastructure means shared vulnerability.
Test parameter-level injection β Some endpoints parse only specific XML nodes. Inject entities into every element value, attribute value, and even element names.
Test for error-based exfiltration β If OOB is blocked, trigger XML parsing errors that include file content in the error message returned to the client.
Document the full impact chain β Demonstrate: file read β SSRF β internal service access β note which internal domains/IPs are reachable.
Payload & Detection Patterns
Error-based exfil via local-DTD repurposing (zero network egress)
When both file:// outbound AND external-DTD fetch are blocked, reference a DTD already on disk and re
FAQ
What does XXE allow?
It can allow reading local files, making internal requests and in some cases running code, according to the skill.
How is a blind case confirmed?
The skill uses an out-of-band callback to a server the tester controls.
Which file types are covered?
The skill covers SVG, DOCX, PPTX and similar office files that contain XML.
Details
Original description by the author
Hunting skill for xxe vulnerabilities. Built from 10 public bug bounty reports including SVG-upload XXE, Office-doc (PPTX/DOCX) XXE, SOAP XXE, SAML AssertionConsumer XXE, blind OOB XXE via DTD callback, parameter-entity XXE, XXE-to-LFI, XXE-to-SSRF, and XXE-to-RCE chains (Adobe Commerce CosmicSting CVE-2024-34102). Use when hunting XXE on any target β emphasis on OOB-Or-It-Didn't-Happen Gate for blind cases.
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14941
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
apk-redteam-pipeline
5.4kHelps your agent test an Android app for security weaknesses, from finding the APK file and decompiling it to checking for exposed secrets.
bugcrowd-reporting
5.4kHelps your agent write better Bugcrowd vulnerability reports, choosing the right category and answering out-of-scope objections.
cloud-iam-deep
5.4kHelps your agent check what a found cloud credential can access on AWS, Azure or Google Cloud, during an authorized security test.
enterprise-vpn-attack
5.4kHelps your agent check VPN and remote-access appliances from Cisco, Fortinet, Citrix and others for known weaknesses during an authorized test.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.