A security analyst is reviewing HTTP logs for a web application dashboard generator. During security testing, an tester supplied the parameter payload `{{7*7}}`, which resulted in the server returning a web page displaying `49`. A subsequent request containing the payload `{{self.__init__.__globals__.__builtins__.__import__('os').popen('whoami').read()}}` executed on the backend host and returned the web server execution account context. Which of the following application vulnerabilities is present in this system?
- Server-Side Template Injection (SSTI)Answer
- BReflected Cross-Site Scripting (XSS)
- CInsecure Direct Object Reference (IDOR)
- DNetwork-level Intrusion Detection System (IDS) rule bypass
Answer
Server-Side Template Injection (SSTI) is present because user-supplied input was evaluated and executed dynamically by the server's template engine.
Server-Side Template Injection occurs when unvalidated user input is directly processed by a web application template engine. The initial payload `{{7*7}}` demonstrated template expression evaluation by outputting `49`, and the subsequent payload leveraged template engine reflection capabilities to invoke backend system commands, yielding remote code execution.
Step-by-Step Solution
Key Concept
Server-Side Template Injection (SSTI)
Estimated Time:1m 15s