hunt-xxe
Qué hace
Esta skill comprueba si los analizadores XML aceptan entidades externas, lo que puede exponer archivos o hacer peticiones desde el servidor. Es para pruebas autorizadas de subidas de XML, servicios SOAP y funciones de importación de documentos.
Cuándo usarla
- ✓Cuando un endpoint acepta mensajes XML, SOAP o SAML.
- ✓Cuando un archivo subido como DOCX, SVG o XLSX se analiza en el servidor.
- ✓Cuando el servidor podría consultar una dirección externa al leer XML.
Link de la skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-xxe/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Nuestra importación de documentos acepta archivos DOCX. ¿Puedes comprobar si el analizador XML maneja las entidades externas de forma insegura, en nuestra prueba autorizada?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente envía XML que pide al analizador cargar un recurso de prueba, y después comprueba la respuesta o una devolución de llamada. Confirma el resultado antes de informar.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué permite XXE?
Según la skill, puede permitir leer archivos locales, hacer peticiones internas y, en algunos casos, ejecutar código.
¿Cómo se confirma un caso ciego?
La skill usa una devolución de llamada fuera de banda a un servidor que controla el probador.
¿Qué tipos de archivo cubre?
La skill cubre SVG, DOCX, PPTX y archivos de oficina parecidos que contienen XML.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 5,4 mil
- Posición en el ranking
- #14941
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
apk-redteam-pipeline
5,4 milAyuda a tu agente a probar una app de Android en busca de debilidades de seguridad, desde encontrar el archivo APK y descompilarlo hasta buscar secretos expuestos.
bugcrowd-reporting
5,4 milAyuda a tu agente a escribir mejores informes de vulnerabilidades para Bugcrowd, eligiendo la categoría adecuada y respondiendo a las objeciones de fuera de alcance.
cloud-iam-deep
5,4 milAyuda a tu agente a comprobar a qué puede acceder una credencial de nube encontrada en AWS, Azure o Google Cloud, durante una prueba de seguridad autorizada.
enterprise-vpn-attack
5,4 milAyuda a tu agente a revisar equipos VPN y de acceso remoto de Cisco, Fortinet, Citrix y otros en busca de debilidades conocidas, durante una prueba autorizada.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.