After the last lesson the Hacker added protection that rejects any input containing {{. But the template engine also accepts a second expression syntax, ${ }.
The same greeting portal, but the developer blocks only the double-brace syntax. The template engine accepts another delimiter syntax the filter does not block.
You bypassed the {{ block with another expression syntax and read the secret.
Why the solution worked
The protection blocked one syntax while the engine accepts others, so blocking {{ does not block ${ }. A blacklist of syntaxes is always incomplete. The fix is the same: do not build the template from user input; pass it as data to a fixed template, so no syntax works at all.
The root cause
The blacklist blocks one delimiter while the engine accepts several; the root is still pasting input into the template text.
How the code is fixed
Blocking a syntax is a blacklist. Pass input as data and you need to block no syntax at all.
Vulnerable code
if (req.body.name.includes('{{')) return bad(); // one syntax
engine.render('Hello ' + req.body.name, { config });
Safe code
engine.render('Hello {{ name }}', { name: req.body.name }); // input is data, not template
Impact in the real world
Blocking one delimiter does not stop injection; reading secrets and code execution stay possible through another delimiter.
How defenders detect it
Defenders never render a template from user input, pass data as variables, and watch for all delimiter syntaxes in inputs.
Your workspace now has a Server logs tab: your own attack, as the defender saw it, with the alerting lines marked.
Solved with the walkthrough. Put it aside and solve again to earn the feather.