Skip to content
yaklang avatar

Xslt Injection

Injects attacker-controlled stylesheets to test XSLT processors for file access, SSRF, and extension-based code execution.

CCM score
66 of 100
skills.sh installs
4K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers processor fingerprinting, XXE and document() SSRF, EXSLT file writes, and PHP, Java, and .NET extension RCE surfaces
  • Includes ready-made stylesheet payloads for vendor detection (system-property('xsl:vendor')), file:///etc/passwd reads, and exslt:document writes
  • Notes that extensions are often disabled by default, so testers should pivot to document() or SSRF when RCE paths are closed
  • Designed for authorized penetration tests where user-controlled XSLT input or transform endpoints are in scope

Install

$ npx -y skills add yaklang/hack-skills --skill xslt-injection -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SKILL: XSLT Injection — Testing Playbook

AI LOAD INSTRUCTION: XSLT injection occurs when attacker-influenced XSLT is compiled/executed server-side. Map the processor family first (Java/.NET/PHP/libxslt). Then chain document(), external entities, EXSLT, or embedded script/extension functions per platform. Authorized testing only; many payloads are destructive. Routing note: if input is generic XML parsing and may not flow through XSLT, cross-load xxe-xml-external-entity; if you care about outbound document(http:...) requests, cross-load ssrf-server-side-request-forgery.


0. QUICK START

  1. Find sinks: parameters named xslt, stylesheet, transform, template, SOAP stylesheets, report generators, XML→HTML converters.
  2. Probe reflection: inject unique namespace or xsl:value-of select="'marker'" — if output changes, execution likely.
  3. Fingerprint processor (§1).
  4. Escalate by family: document() / XXE (§2–3), EXSLT write (§4), PHP (§5), Java (§6), .NET (§7).

Quick probe (harmless marker):

Details

Repository
github.com/yaklang/hack-skills
Category
Security
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102

Similar to Xslt Injection

More Security