📌SSTI : Server Side Template Injection
Notes
Tools
Detect
Commonly Used Template Engine Syntax
Plaintext Context
Code Context
Identify
Invalid Syntax
Ruby Error
Decision Tree

Template Engine Payloads
Ruby
Ruby - Basic injections
Ruby - Retrieve /etc/passwd
Ruby - List files and directories then read
Ruby - Code execution
Tornado Template
Tornado (Python)
FreeMarker Template Injection
FreeMarker (Java)
Get FreeMarker Version
Freemarker - Code Execution
Django Template Injection
Django Templates
Detection
Django Templates for post-exploitation
Cross-site scripting
Debug information leak
Leaking app’s Secret Key
Admin Site URL leak
Admin username and password hash leak
Jinja2(Python) Template Injection
RCE
References
Last updated