How can you test for server-side template injection (SSTI) vulnerabilities?
Server-side template injection (SSTI) is a type of web application vulnerability that allows an attacker to inject malicious code into a server-side template engine, such as Jinja2, Twig, or Freemarker. A template engine is a tool that renders dynamic web pages by combining data from a database or user input with a predefined template. If the template engine does not properly sanitize the user input, an attacker can exploit it to execute arbitrary commands, access sensitive files, or even take over the server.