hunt-ssti

Detect server-side template injection vulnerabilities and escalate to remote code execution.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill hunt-ssti-uphiago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-ssti
Source: https://github.com/uphiago/recon-skills/tree/main/redteam/hunt-ssti
Command: npx skills add https://github.com/uphiago/recon-skills --skill hunt-ssti-uphiago

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Server-side template injection (SSTI) is a high-severity vulnerability that can lead to unauthenticated remote code execution, but manual detection across multiple template engines is time-consuming and error-prone. This Skill automates the full SSTI hunting workflow from detection to RCE escalation for all major template engines.

Core Features & Use Cases

  • Multi-Engine Fingerprinting: Automatically identifies Jinja2, Twig, Freemarker, ERB, Velocity, Thymeleaf, and Smarty via differential math expression probes.
  • End-to-End Escalation: Provides engine-specific RCE payloads, blind out-of-band detection methods, and bypass techniques for WAFs, sandboxes, and character filters.
  • Attack Surface Mapping: Includes common sink patterns for email templates, CMS preview features, PDF generators, and error pages to speed up initial reconnaissance.
  • Use Case: Use this Skill during a red team engagement to test an e-commerce platform's order confirmation email template or a CMS page builder for SSTI flaws that can be chained to full server compromise.

Quick Start

Use the hunt-ssti skill to test all user-controlled input fields on the target web application for server-side template injection vulnerabilities and escalate any confirmed findings to remote code execution.

Frequently Asked Questions about hunt-ssti

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect server-side template injection vulnerabilities across different web template engines?

Server-side template injection vulnerabilities are detected by injecting polyglot differential math expression probes to fingerprint specific engines like Jinja2, Twig, and Freemarker, then applying engine-specific payloads to confirm remote code execution paths.

What is the best way to escalate SSTI to remote code execution during a red team engagement?

The best way to escalate SSTI to remote code execution is by applying engine-specific RCE payloads tailored to the identified template engine, including bypass techniques for WAFs, sandboxes, and character filters to achieve full server compromise.

Can I test CMS page builders and email template systems for SSTI flaws?

Yes, you can test CMS page builders, email template systems, and PDF generators for SSTI flaws by mapping common injection sink patterns and injecting user-controlled input into server-side template rendering features.

How do blind SSTI out-of-band detection methods work for web applications?

Blind SSTI out-of-band detection methods work by injecting template payloads that trigger external network interactions, allowing you to confirm code execution on vulnerable API endpoints or error pages without visible application responses.

Does this SSTI vulnerability hunting approach work with Java template engines like Thymeleaf and Velocity?

Yes, this SSTI vulnerability hunting approach works with Java template engines like Thymeleaf and Velocity, alongside ERB and Smarty, using multi-engine fingerprinting logic to identify and exploit server-side rendering flaws.