Server-Side Template Injection Protection
Prevents SSTI attacks that could lead to RCE in templating engines. Prevents SSTI attacks that could lead to RCE in templating engines.
Overview
Prevents SSTI attacks that could lead to RCE in templating engines.
Feature details
Jinja2 / Django (Python)
Twig / Smarty (PHP)
Freemarker / Velocity (Java)
ERB (Ruby)
Handlebars / Mustache (JavaScript)
Pug / Jade (Node.js)
Go Templates
{{ config.items() }} - Config Access
{{ self.__class__ }} - Object Traversal
${7*7} - Expression Evaluation
{{7*7}}
Encoded Expression
<%= system('id') %> - Code Execution
{php}system('id');{/php} - PHP Injection
Sandboxed Template Rendering
Disable Dangerous Functions
Input Sanitization
Context-Aware Escaping
Template Whitelisting
Expression Depth Limiting
How CloFix WAF uses it
Prevents SSTI attacks that could lead to RCE in templating engines. Part of the CloFix WAF Core Security Features with real-time scoring, policy controls, and live analytics.
Canonical URL: https://clofix.com/features/clofix-waf/template-injection/