xxe

Guide XXE injection exploitation for file disclosure, SSRF, and RCE.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill xxe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xxe
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/web/xxe
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill xxe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers identify and exploit XML External Entity (XXE) injection vulnerabilities in web applications, allowing for file disclosure, server-side request forgery, and potential remote code execution.

Core Features & Use Cases

  • XXE Detection: Probes for XXE vulnerabilities by testing entity resolution.
  • File Disclosure: Reads sensitive files from the server (e.g., /etc/passwd).
  • SSRF: Leverages XXE to make requests to internal or external resources.
  • Blind XXE: Handles scenarios where responses are not reflected, using out-of-band techniques.
  • File Upload Exploitation: Exploits XXE in file upload formats like SVG, DOCX, and XLSX.

Quick Start

Use the xxe skill to attempt reading the '/etc/passwd' file from the target.

Frequently Asked Questions about xxe

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit XXE injection vulnerabilities during a penetration test?

To exploit XXE injection vulnerabilities, you identify XML parser surfaces and test entity resolution to read files, perform SSRF, or achieve RCE. Techniques include classic, blind, error-based, and XInclude approaches depending on parser reflection capabilities.

What is blind XXE and how does out-of-band data exfiltration work?

Blind XXE occurs when application responses do not reflect parsed XML entity data. Exploitation uses out-of-band techniques to exfiltrate files or perform SSRF by forcing the parser to make external requests to attacker-controlled endpoints.

Can I exploit XXE through file uploads like SVG, DOCX, and XLSX?

Yes, XXE exploitation is possible via file uploads using formats like SVG, DOCX, and XLSX. These file types contain XML structures that parsers process, allowing injection of malicious external entities to trigger file disclosure or SSRF.

How do I bypass WAF protections when testing XML injection payloads?

WAF bypass methods for XML injection involve modifying payload encodings, using XInclude techniques, or leveraging file upload formats like SVG and DOCX. These approaches obscure malicious entity definitions while maintaining parser execution.

What is the difference between classic, blind, and error-based XXE techniques?

Classic XXE reflects parsed entity data directly in responses, blind XXE requires out-of-band exfiltration without reflection, and error-based XXE extracts data through parser error messages. Choice depends on application response behavior.