Langsung ke konten
Skillpedia
Keamanan48k Β· #4911

hunt-xxe

Fungsinya

Alat ini membantu menemukan celah keamanan bernama XXE pada website dan aplikasi. Celah ini memungkinkan penyerang membaca file sensitif dari server atau mengakses sistem internal.

Kapan dipakai

  • βœ“Saat menguji keamanan website.
  • βœ“Saat mencari celah pada aplikasi yang memproses file XML.
  • βœ“Dalam penilaian keamanan yang sudah mendapat otorisasi.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-xxe/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-xxe/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œCari celah XXE di example.com”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini mengirimkan data khusus ke website, dengan harapan website akan bereaksi tidak biasa jika celah XXE memang ada. Alat ini memeriksa apakah website menampilkan informasi tertentu atau mencoba terhubung ke sistem lain.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

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: Nokogiri older 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

  1. 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-Type to application/xml with equivalent XML body.

  2. Identify file upload features β€” Upload SVG, DOCX, XLSX, and observe if the server processes/renders content. These are often XML under the hood.

  3. Attempt inline XXE (classic file read) β€” Replace the XML body with a basic entity test payload targeting /etc/passwd or C:\Windows\win.ini. Observe if the value is reflected in the response.

  4. 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.

  5. 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.

  6. 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.

…

Pertanyaan umum

Apa itu XXE?

XXE singkatan dari 'XML External Entity'. Ini adalah jenis kerentanan keamanan yang terjadi ketika aplikasi memproses data XML secara tidak aman.

Apa risiko dari celah XXE?

Penyerang bisa membaca file sensitif di server, seperti kata sandi atau konfigurasi, atau menggunakan server untuk menyerang sistem internal lain (SSRF).

Apakah saya perlu izin untuk menggunakan alat ini?

Ya, Anda memerlukan izin tertulis yang jelas dari pemilik sistem sebelum menggunakan alat ini. Penggunaan tanpa izin adalah tindakan ilegal.

Detail

Deskripsi asli dari pembuat

Hunting skill for xxe vulnerabilities.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4911
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa