/rea-skills:payloads-sstifrom rea-skills
Provides SSTI payloads for Jinja2, Twig, Freemarker, and other template engines. Use during authorized penetration tests, bug bounty research, and CTF challenges.
Ships in rea-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Source: PayloadsAllTheThings/Server Side Template Injection Category:
payloads-injection| Skill ID:payloads-ssti
Server-Side Template Injection payloads for Jinja2, Twig, Freemarker, and more.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the SSTI Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
Template injection allows an attacker to include template code into an existing (or not) template. A template engine makes designing HTML pages easier by using static template files which at runtime replaces variables/placeholders with actual values in the HTML pages.
Hackmanit/TInjA - An efficient SSTI + CSTI scanner which utilizes novel polyglots
tinja url -u "http://example.com/?name=Kirlia" -H "Authentication: Bearer ey..."
tinja url -u "http://example.com/" -d "username=Kirlia" -c "PHPSESSID=ABC123..."
epinna/tplmap - Server-Side Template Injection and Code Injection Detection and Exploitation Tool
python2.7 ./tplmap.py -u 'http://www.target.com/page?name=John*' --os-shell
python2.7 ./tplmap.py -u "http://192.168.56.101:3000/ti?user=*&comment=supercomment&link"
python2.7 ./tplmap.py -u "http://192.168.56.101:3000/ti?user=InjectHere*&comment=A&link" --level 5 -e jade
vladko312/SSTImap - Automatic SSTI detection tool with interactive interface based on epinna/tplmap
python3 ./sstimap.py -u 'https://example.com/page?name=John' -s
python3 ./sstimap.py -i -u 'https://example.com/page?name=Vulnerable*&message=My_message' -l 5 -e jade
python3 ./sstimap.py -i -A -m POST -l 5 -H 'Authorization: Basic bG9naW46c2VjcmV0X3Bhc3N3b3Jk'
Original research:

Applicability: detection, exploitation
When the rendered template is displayed to the attacker, Rendered technique can be used to include the results of the injected code on the page.

Applicability: detection, exploitation
When the errors are verbosely displayed to the attacker, Error-Based technique can be used to trigger the error message containing the results of the injected code.

Applicability: detection, blind exploitation, blind data exfiltration
Boolean-Based technique can be used to conditionally trigger an error to indicate success or failure of the injected code.

Applicability: limited detection, blind exploitation, blind data exfiltration
Time-Based technique can be used to conditionally trigger the delay to indicate success or failure of the injected code.
Triggering the delay often requires guessing payloads for code evaluation or OS command execution.
Applicability: limited detection, exploitation
Out of Bounds technique can be used to expose results of the injected code through other channels (e.g. by connecting to an attacker-controlled server).
This technique often requires guessing payloads for code evaluation or OS command execution.

Applicability: detection
Polyglot-Based technique can be used to quickly determine the template engine by checking how it transforms different payloads.
Polyglot to trigger an error in presence of SSTI vulnerability:
${{<%[%'"}}%\.
Common tags to test for SSTI with code evaluation:
{{ ... }}
${ ... }
#{ ... }
<%= ... %>
{ ... }
{{= ... }}
{= ... }
\n= ... \n
*{ ... }
@{ ... }
@( ... )
Rendered SSTI can be checked by using mathematical expressions inside the tags:
7 * 7
Error-Based SSTI can be checked by using this payload inside the tags:
(1/0).zxy.zxy
If the error caused by that payload is displayed verbosely, it can be checked to guess the language used for code evaluation:
| Error | Language |
|---|---|
| ZeroDivisionError | Python |
| java.lang.ArithmeticException | Java |
| ReferenceError | NodeJS |
| TypeError | NodeJS |
| Division by zero | PHP |
| DivisionByZeroError | PHP |
| divided by 0 | Ruby |
| Arithmetic operation failed | Freemarker (Java) |
To test for blind injections using Boolean-Based technique, the attacker can test pairs of similar payloads wrapped in tags, where one payload evaluates mathematical expression, while the other triggers syntax error:
| test | ok | error |
|---|---|---|
| 1 | (3*4/2) | 3*)2(/4 |
| 2 | ((7*8)/(2*4)) | 7)(*)8)(2/(*4 |
Using at least two pairs of payloads avoids false positives caused by external interference.
The attacker first locates an input field, URL parameter, or any user-controllable part of the application that is passed into a server-side template without proper sanitization or escaping.
For example, the attacker might identify a web form, search bar, or template preview functionality that seems to return results based on dynamic user input.
TIP: Generated PDF files, invoices and emails usually use a template.
The attacker tests the identified input field by injecting template syntax specific to the template engine in use. Different web frameworks use different template engines (e.g., Jinja2 for Python, Twig for PHP, or FreeMarker for Java).
Common template expressions:
{{7*7}} for Jinja2 (Python).#{7*7} for Thymeleaf (Java).Find more template expressions in the page dedicated to the technology (PHP, Python, etc).

In most cases, this polyglot payload will trigger an error in presence of a SSTI vulnerability:
${{<%[%'"}}%\.
The Hackmanit/Template Injection Table is an interactive table containing the most efficient template injection polyglots along with the expected responses of the 44 most important template engines.
Based on the successful response, the attacker determines which template engine is being used. This step is critical because different template engines have different syntax, features, and potential for exploitation. The attacker may try different payloads to see which one executes, thereby identifying the engine.
The post "template-engines-injection-101" from @0xAwali summarize the syntax and detection method for most of the template engines for JavaScript, Python, Ruby, Java and PHP and how to differentiate between engines that use the same syntax.
Once the template engine is identified, the attacker injects more complex expressions, aiming to execute server-side commands or arbitrary code.
// REA MCP — Automated payload injection via REA tools
// Use analyze_function, procedure_pseudo_code, or observe_native_calls
// to identify injection sinks, then apply payloads from this skill.
⚠️ Authorized Use Only. All payloads in this skill are for security research, penetration testing with written permission, CTF competitions, and defensive study. Unauthorized use against systems you do not own or have explicit permission to test is illegal.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ssti, template-injection, payloads, penetration-testing, bug-bounty
npx claudepluginhub smartworldarafath/rea_skill --plugin rea-skills919 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack./Other plugins' skills for the same job