'; } else{ echo ''; } echo '
|
|
|||
| Rule General Information |
|---|
| Release Date: | 2026-05-06 | |
| Rule Name: | Twig Template Engine SSTI Injection Attack Detection | |
| Severity: | ||
| CVE ID: | ||
| Rule Protection Details |
|---|
| Description: | This rule detects Server-Side Template Injection (SSTI) attacks targeting Twig template engine. The attacker sends GET requests with malicious URL parameters containing Twig template syntax. When server processes the template, it executes the injected command, allowing attackers to run arbitrary system commands on the target server. | |
| Impact: | Successful exploitation allows an attacker to execute arbitrary system commands on the target server, leading to complete system compromise, data theft, and further lateral movement. The attacker can gain privileges of the vulnerable application and potentially escalate privileges to SYSTEM level. | |
| Affected OS: | Linux, Windows, Others | |
| Reference: | ||
| Solutions |
|---|
| Implement proper input validation and sanitization for all user inputs including URL parameters. Use a whitelist approach for allowed template syntax. Disable or restrict dangerous template functions and methods. Implement proper sandboxing for template execution. Monitor for suspicious SSTI activities. |