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
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/passwdreads, andexslt:documentwrites - 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 -yInstalls 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 outbounddocument(http:...)requests, cross-loadssrf-server-side-request-forgery.
0. QUICK START
- Find sinks: parameters named
xslt,stylesheet,transform,template, SOAP stylesheets, report generators, XML→HTML converters. - Probe reflection: inject unique namespace or
xsl:value-of select="'marker'"— if output changes, execution likely. - Fingerprint processor (§1).
- 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- Linux Lateral Movement4K
- Type Juggling4K
- Linux Security Bypass4K
- Classical Cipher Analysis4K
- Tunneling And Pivoting4K
- Steganography Techniques4K
- Prototype Pollution Advanced3.9K
- Stack Overflow And Rop3.9K
- Smart Contract Vulnerabilities3.9K
- Lattice Crypto Attacks3.9K
- Rsa Attack Techniques3.9K
- Sandbox Escape Techniques3.9K
- Symmetric Cipher Attacks3.9K
- Windows Lateral Movement3.9K
- Macos Security Bypass3.9K
- Ntlm Relay Coercion3.9K
- Nosql Injection3.9K
- Macos Process Injection3.9K
- Upload Insecure Files3.9K
- Unauthorized Access Common Services3.8K
- Reverse Shell Techniques3.8K
- Ghost Bits Cast Attack3.7K
- Hack4.8K
- Recon And Methodology4.5K
Similar to Xslt Injection
More Securityxxe-xml-external-entitySkillyaklang/hack-skills4K installsExpert XXE playbook covering SOAP, REST, Office, and SVG injection contexts, plus OOB exfiltration and XXE-to-SSRF chaining.
xss-cross-site-scriptingSkillyaklang/hack-skills4.4K installsXSS playbook covering injection contexts, multi-reflection, CSP and WAF bypasses, and upload vectors.
security-payloadsPluginEyadkelleh/awesome-claude-skills-security134 starsSpecialized attack payloads for XSS, XXE, template injection, and file upload testing
HTML Injection TestingSkilldavila7/claude-code-templates223 installsHTML injection testing skill covering reflected, stored, and POST injection with phishing and defacement payload patterns.
Cross-Site Scripting and HTML Injection TestingSkilldavila7/claude-code-templates232 installsOffensive testing guide for finding and exploiting XSS and HTML injection in web applications, including CSP bypass.
xss-html-injectionSkillsickn33/agentic-awesome-skills127 installsClient-side injection assessment for XSS and HTML injection that gates every probe behind written authorization.