Back to skills
SKILL.md
Xslt Injection
BSecurityXSLT injection — attacker-controlled input reaching an XSLT transformation. Engine/version fingerprinting (Libxslt, Saxon, Xalan, .NET), information disclosure, file read (document()/unparsed-text()), SSRF, and RCE via extension functions (PHP php:function, Xalan Java Runtime, .NET msxsl:script). Tier 1 (RCE paths Tier-2 gated). Payloads: payloads/ldap-xpath-xslt.md.
- 16 stars
- 0 votes
- 0 copies
- 2 views
- Added November 17, 2026
Works with
Security analysis
75/100- Accesses sensitive system or user directories
npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill xslt-injection --agent claude-codeAre you the author of Xslt Injection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-xslt-injection)---
name: xslt-injection
description: "XSLT injection — attacker-controlled input reaching an XSLT transformation. Engine/version fingerprinting (Libxslt, Saxon, Xalan, .NET), information disclosure, file read (document()/unparsed-text()), SSRF, and RCE via extension functions (PHP php:function, Xalan Java Runtime, .NET msxsl:script). Tier 1 (RCE paths Tier-2 gated). Payloads: payloads/ldap-xpath-xslt.md."
---
# XSLT Injection
When user input is embedded in an XSLT stylesheet or transform, you can read files, reach internal services, and sometimes execute code via extension functions.
## Trigger phrases
`xslt injection, xsl transform, xslt rce, saxon, xalan, libxslt, msxsl script`
## Method
1. **Fingerprint:** `<xsl:value-of select="system-property('xsl:version')"/>` and `'xsl:vendor'` → identifies engine (gates available functions: XSLT 1.0 vs 2.0/3.0).
2. **Info/file read:** `document('/etc/passwd')`, `unparsed-text('/etc/passwd')` (2.0+), read config/secrets.
3. **SSRF:** `document('http://169.254.169.254/...')` → cloud metadata (→ `web-ssrf`).
4. **RCE via extension functions [Tier-2 gate]:** PHP-XSL `php:function('system','id')`; Xalan (Java) `rt:exec(rt:getRuntime(),'id')`; .NET `msxsl:script`. Ask lab/authorized → full; else dry-scan (fingerprint + confirm injection without RCE).
## Escalation
File read of secrets → wider access; extension-function RCE → host compromise. Payloads in `${CLAUDE_PLUGIN_ROOT}/payloads/ldap-xpath-xslt.md`.
## 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 XSL, engine/version proof, the leaked file/metadata or benign command output (gated), remediation.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.