testing-for-xxe-injection-vulnerabilities

Featured

Discovering and exploiting XML External Entity injection vulnerabilities to read server files, perform SSRF, and exfiltrate data during authorized penetration tests.

Testing & QA 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Testing for XXE Injection Vulnerabilities ## When to Use - During authorized penetration tests when the application processes XML input (SOAP APIs, file uploads, RSS feeds) - When testing APIs that accept `Content-Type: application/xml` or `text/xml` - For assessing XML parsers in file upload functionality (DOCX, XLSX, SVG, PDF) - When evaluating SOAP-based web services for entity injection - During security assessments of enterprise applications using XML configuration ## Prerequisites - **Authorization**: Written penetration testing agreement for the target - **Burp Suite Professional**: For intercepting and modifying XML requests - **XXEinjector**: Automated XXE exploitation tool (`git clone https://github.com/enjoiz/XXEinjector.git`) - **Out-of-band server**: Burp Collaborator or interactsh for blind XXE detection - **curl**: For manual payload crafting and submission - **Python**: For building DTD hosting server ## Workflow ### Step 1: Identify XML Processing Points Find all application endpoints that accept or process XML data. ```bash # Look for XML content types in Burp proxy history # Filter for: Content-Type: application/xml, text/xml, application/soap+xml # Test if JSON endpoints also accept XML # Original JSON request: curl -s -X POST \ -H "Content-Type: application/json" \ -d '{"search":"test"}' \ "https://target.example.com/api/search" # Try converting to XML: curl -s -X POST \ -H "Content-Type: application/xml" \ -d '<?xml version="1.0"?><...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category