# Server-Side Template Injection (SSTI)

> Master SSTI vulnerabilities. Learn to identify template engines, exploit sandbox escapes, and achieve Remote Code Execution safely.

Canonical: https://codelivly.com/rooms/server-side-template-injection-ssti
Last updated: 2026-11-29

| | |
|---|---|
| Level | Advanced |
| Category | Web Security |
| Lessons | 6 |
| Estimated time | 3 h |
| XP | 1900 |

This module explores Server-Side Template Injection (SSTI), a critical vulnerability where user input is unsafely embedded into server-side templates before rendering. You will learn how to identify vulnerable template engines (like Jinja2, Twig, and Freemarker), exploit object traversal to escape template sandboxes, and escalate SSTI to Remote Code Execution (RCE). The module culminates in a guided lab where you will safely prove RCE impact using authorized, non-destructive payloads and professional reporting techniques.

## Lessons

1. What is Server-Side Template Injection (SSTI) & Why It Matters (30 min)
2. Detecting Template Evaluation (30 min)
3. Identifying the Template Engine (30 min)
4. Sandbox Escapes to Code Execution (30 min)
5. Defender's View: Logic-Less Templates and Sandboxing (30 min)
6. Guided Lab: Escalate a Lab SSTI to a Proof-of-Concept Command (30 min)

## Related

- [Learning path: Server-Side Injection Beyond SQLi Basics](https://codelivly.com/learning-paths/server-side-injection-beyond-sqli-basics)
- [All rooms](https://codelivly.com/rooms)
