Skip to content
yaklang avatar

Ssti Server Side Template Injection

Server-side template injection playbook with engine fingerprinting probes and RCE chains for Jinja2, FreeMarker, Twig, Velocity, ERB, and Thymeleaf.

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

Own this skill? Claim it

What it does

  • Covers polyglot detection probes that separate SSTI from XSS, then fingerprint the template engine and host language
  • Includes RCE chains per engine (Jinja2 MRO and __globals__ escapes, FreeMarker Execute, Twig filter maps, Velocity reflection, ERB, Thymeleaf SpEL)
  • Provides bypass patterns for filtered underscores, dots, and keywords, such as hex-encoded attr() lookups and |safe
  • Designed for authorized penetration testing and bug bounty work where template expressions or preview features may evaluate attacker input

Install

$ npx -y skills add yaklang/hack-skills --skill ssti-server-side-template-injection -y

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

Files

SKILL: Server-Side Template Injection (SSTI) — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert SSTI techniques. Covers polyglot detection probes, engine fingerprinting, Jinja2/FreeMarker/Twig/ERB RCE chains, client-side Angular SSTI, and bypass techniques. Base models often miss sandbox escape MRO chains and non-Jinja2 engines. For PHP CMS template eval, Jira SSTI, Confluence OGNL, and Spring Cloud Gateway SpEL, load the companion SCENARIOS.md.

0. RELATED ROUTING

Before using full engine-specific exploitation, you can first load:

  • First use the polyglot probe sequence at the top of this file for low-noise fingerprinting
  • expression-language-injection when ${7*7} or %{7*7} resolves in Java (SpEL/OGNL) — different attack surface from template engines

Extended Scenarios

Details

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

More from yaklang/hack-skills

All 102

Similar to Ssti Server Side Template Injection

More Security