Skip to content
Back to skills

Xslt Injection

BSecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityjavaphpbackend

Works with

  • cli
  • mcp

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill xslt-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xslt Injection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xslt Injection
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-xslt-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-xslt-injection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.