hunt-ssti

Identify and exploit server-side template injection vulnerabilities across Jinja2, Twig, and Freemarker.

13|2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/pdparchitect/rook --skill hunt-ssti-pdparchitect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-ssti
Source: https://github.com/pdparchitect/rook/tree/main/skills/hunt-ssti
Command: npx skills add https://github.com/pdparchitect/rook --skill hunt-ssti-pdparchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies and validates server-side template injection (SSTI) vulnerabilities across various template engines, helping security researchers move from initial detection to remote code execution (RCE) verification.

Core Features & Use Cases

  • Engine Fingerprinting: Automatically identifies the underlying template engine (Jinja2, Twig, Freemarker, etc.) using mathematical probe expressions.
  • RCE Escalation: Provides specific payloads to escalate from simple reflections to full command execution via class-walking or callback-registration.
  • Use Case: When auditing a web application that renders user-supplied input in email templates or PDF generators, use this skill to test for SSTI and confirm if the application is vulnerable to RCE.

Quick Start

Use the hunt-ssti skill to audit the target application for template injection vulnerabilities by testing the provided input fields against common engine payloads.

Frequently Asked Questions about hunt-ssti

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

FAQPage Schema
How do I test for server-side template injection vulnerabilities in web applications?

To test for server-side template injection, use mathematical probe expressions to fingerprint the underlying template engine, then apply engine-specific payloads to confirm if user-supplied input in features like email templates or PDF generators allows remote code execution.

How does server-side template injection allow remote code execution?

Server-side template injection allows remote code execution by exploiting engine-specific class-walker and callback-registrar patterns to escalate simple template reflections into full command execution within the target application's runtime environment.

Can I detect template injection across different engines like Jinja2, Twig, and Freemarker?

Yes, you can detect template injection across engines like Jinja2, Twig, and Freemarker by using engine fingerprinting techniques that evaluate mathematical probe expressions to systematically identify the specific template rendering engine in use.

What is the best way to audit CMS preview endpoints for template injection?

The best way to audit CMS preview endpoints for template injection is to systematically test input fields against common engine payloads, targeting features that render user-supplied input to verify vulnerability impact and potential remote code execution.

When should I evaluate class-walking patterns during vulnerability research?

You should evaluate class-walking patterns during vulnerability research when confirming server-side template injection impact, as these engine-specific callback-registrar mechanisms are required to successfully escalate from initial detection to full remote code execution.