Individual skill
exploiting-template-injection-vulnerabilities
Detecting and exploiting Server-Side Template Injection (SSTI) vulnerabilities across Jinja2, Twig, Freemarker, and other template engines to achieve remote code execution.
internal/tools/skills/data/web-application-security/exploiting-template-injection-vulnerabilities/SKILL.md
Source commit d42f381ad34843e71a42658e5c57290c713e85af
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,310
- Repository last updated
- Nov 7, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- cybersecurity Repository topic
- security Repository topic
- bug-bounty Repository topic
- automation Repository topic
- autonomous-pentesting Repository topic
- ai-agent Repository topic
- ai-security Repository topic
- ethical-hacking Repository topic
- golang Repository topic
- penetration-testing Repository topic
- penetration-testing Declared skill tag
- ssti Declared skill tag
- template-injection Declared skill tag
- rce Declared skill tag
- web-security Declared skill tag
- owasp Declared skill tag
- security Derived category
- testing Derived category
- security-application Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytesSKILL.mdcore · 13,955 bytes
Read excerpt
# Exploiting Template Injection Vulnerabilities
## When to Use
- During authorized penetration tests when user input is rendered through a server-side template engine
- When testing error pages, email templates, PDF generators, or report builders that include user-supplied data
- For assessing applications that allow users to customize templates or notification messages
- When identifying potential SSTI in parameters that reflect arithmetic results (e.g., `{{7*7}}` returns `49`)
- During security assessments of CMS platforms, marketing tools, or any application with templating functionality
### How to CONFIRM a Hit (avoid false negatives)
- The positive signal is **server-side evaluation of an expression**: an arithmetic probe is rendered as its result. Confirm `{{7*7}}` → `49`, `${7*7}` → `49`, `#{7*7}` → `49`, `<%= 7*7 %>` → `49`, `{7*7}` → `49`. The literal `7*7` staying in the response means no evaluation at that syntax (try the next).
- Distinguish SSTI from plain reflection/XSS: a reflected `7*7` is just echo; only a computed `49` (or a string-multiplication tell like `{{7*'7'}}` → `7777777`) proves template execution. Then fingerprint the engine BEFORE declaring impact.
- Fingerprint via the divergence test: `{{7*'7'}}` → `7777777` = Jinja2, `49` = Twig; `${7*7}` evaluating = Freemarker/Velocity/Spring EL; `#{7*7}` = Thymeleaf/Ruby. Engine-specific RCE only works after correct fingerprint.