Summery
SSTI (Server-Side Template Injection) - SSTI is a vulnerability when user input is injected into a template engine (Flask uses one) to execute a payload as a template code. Template code is used to generate dynamic text like Hello {{username}}! to get Hello Azaeir! and such.
Injections
${{<%[%'"}}%\.'" - Ippsec’s injection to check for SSTI
{{7*7}} - Simple injection string
References
https://payloadplayground.com/cheatsheets/ssti - Ton of payloads
https://github.com/swisskyrepo/PayloadsAllTheThings/blob/master/Server%20Side%20Template%20Injection/README.md - Payloads and in-depth explanation
https://hacktricks.wiki/en/pentesting-web/ssti-server-side-template-injection/index.html - Guide and typical incomprehansible hacktrick’s jargon