XML injection — tampering XML document structure via unsanitized input (injecting elements/attributes to change logic like price/role/quantity), CDATA smuggling, and as a gateway to XXE. Tier 1. Payloads: payloads/ldap-xpath-xslt.md (XML) → escalates to web-xxe. Use when input is placed into server-side XML.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Xml Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-xml-injection)
---
name: xml-injection
description: "XML injection — tampering XML document structure via unsanitized input (injecting elements/attributes to change logic like price/role/quantity), CDATA smuggling, and as a gateway to XXE. Tier 1. Payloads: payloads/ldap-xpath-xslt.md (XML) → escalates to web-xxe. Use when input is placed into server-side XML."
---
# XML Injection
Injecting into server-side XML can change document meaning (privilege/price/quantity fields), smuggle content, or open the door to XXE.
## Trigger phrases
`xml injection, xml tampering, element injection, cdata injection, xxe gateway`
## Method
1. **Probe:** inject `<`, `>`, `"`, `'`, `&`, and extra elements/attributes; see if structure changes server-side.
2. **Structure tampering:** close/open tags to inject or overwrite elements (e.g. add `<role>admin</role>`, change `<price>`); test field duplication (last-wins parsing).
3. **CDATA smuggling:** `<![CDATA[<script>…</script>]]>` to bypass filters that render elsewhere.
4. **Escalate to XXE:** add a DOCTYPE/entity → file read/SSRF/OOB (→ `web-xxe`, `${CLAUDE_PLUGIN_ROOT}/payloads/xxe.md`).
## Escalation
Logic tampering (privilege/price), stored-XSS via smuggled markup, or XXE → file read/SSRF/RCE.
## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.
## Evidence
The injected XML, the structural/logic change or XXE result, and the affected endpoint.