Attacks and Exploits
A tester submits {{7*7}} in a name parameter and the page responds "Hello 49". What does this result indicate?
Show the answer
Correct answerA. Server-side template injection
AWhy this is right: The server computed 49, so the input was evaluated by a server-side template engine.
BWhy not this: No database query is shown to be altered; arithmetic in a greeting is not SQL behaviour.
CWhy not this: Nothing shows a shell ran an OS command; the expression was evaluated by a template engine.
DWhy not this: Reflected XSS echoes input back for the browser to run; here the server changed the value before it was sent.
The server evaluated the expression and returned its result, so the input reached a template engine, which is server-side template injection. Reflected XSS would return the text {{7*7}} unchanged, with any script running in the browser.