hunt-xxe
Was er macht
Dieser Skill prüft, ob XML-Parser externe Entities akzeptieren, die Dateien offenlegen oder Serveranfragen auslösen können. Er ist für autorisierte Tests von XML-Uploads, SOAP-Diensten und Dokumentimport-Funktionen gedacht.
Wann du ihn nutzt
- ✓Wenn ein Endpunkt XML, SOAP oder SAML-Nachrichten annimmt.
- ✓Wenn eine Datei-Upload-Funktion wie DOCX, SVG oder XLSX auf dem Server geparst wird.
- ✓Wenn der Server beim Lesen von XML eine externe Adresse abrufen könnte.
Link zum Skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xxe/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Unser Dokumentimport nimmt DOCX-Dateien an. Kannst du in unserem autorisierten Test prüfen, ob der XML-Parser externe Entities unsicher verarbeitet?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent sendet XML, das den Parser bittet, eine Testressource zu laden, und prüft dann die Antwort oder einen Rückruf. Das Ergebnis bestätigt er, bevor er meldet.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Was erlaubt XXE?
Laut Skill kann es das Lesen lokaler Dateien, interne Anfragen und in manchen Fällen die Ausführung von Code erlauben.
Wie werden blinde Fälle bestätigt?
Der Skill nutzt einen Out-of-Band-Rückruf an einen Server, den der Tester kontrolliert.
Welche Dateitypen sind abgedeckt?
Der Skill deckt SVG, DOCX, PPTX und ähnliche Office-Dateien ab, die XML enthalten.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14941
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
apk-redteam-pipeline
5.4kHilft deinem Agenten, eine Android-App auf Sicherheitsschwächen zu testen, vom Finden der APK-Datei über die Dekompilierung bis zur Prüfung auf offengelegte Geheimnisse.
bugcrowd-reporting
5.4kHilft deinem Agenten, bessere Bugcrowd-Schwachstellenberichte zu schreiben, mit der richtigen Kategorie und Antworten auf Einwände wegen fehlendem Umfang.
cloud-iam-deep
5.4kHilft deinem Agenten zu prüfen, worauf eine gefundene Cloud-Zugangsdaten bei AWS, Azure oder Google Cloud zugreifen kann, bei einem autorisierten Sicherheitstest.
enterprise-vpn-attack
5.4kHilft deinem Agenten, VPN- und Fernzugriffsgeräte von Cisco, Fortinet, Citrix und anderen auf bekannte Schwachstellen zu prüfen, bei einem autorisierten Test.
Ähnliche Skills
reverse-engineer-anything
422kHilft deinem Agenten, fertige Apps und Pakete zu untersuchen, um Funktionen zu erklären, Versionen zu vergleichen oder einen Nachbau zu leiten, mit dem REA-Tool.
1password
394kHilft deinem Agenten, die 1Password-Kommandozeile einzurichten, sich anzumelden und Geheimnisse zu lesen oder einzufügen, ohne deren Werte im Chat auszugeben.
healthcheck
394kHilft deinem Agenten, den Computer oder Server, auf dem OpenClaw läuft, auf Sicherheitsrisiken wie SSH, Firewall, Updates und Backups zu prüfen und sichere Korrekturen vorzuschlagen.