nerdexam
EC-Council

312-50V11 · Question #988

Calvin, a software developer, uses a feature that helps him auto-generate the content of a web page without manual involvement and is integrated with SSI directives. This leads to a vulnerability in…

The correct answer is D. A Server-side includes injection. SSI injection exploits the Server-Side Includes feature by embedding malicious directives through unsanitized user input, enabling attackers to execute server-side commands such as file modification or deletion.

Hacking Web Applications

Question

Calvin, a software developer, uses a feature that helps him auto-generate the content of a web page without manual involvement and is integrated with SSI directives. This leads to a vulnerability in the developed web application as this feature accepts remote user inputs and uses them on the page. Hackers can exploit this feature and pass malicious SSI directives as input values to perform malicious activities such as modifying and erasing server files. What is the type of injection attack Calvin's web application is susceptible to?

Options

  • AQserver-side template injection
  • BServer-side JS injection
  • CCRLF injection
  • DA Server-side includes injection

How the community answered

(51 responses)
  • A
    6% (3)
  • B
    10% (5)
  • C
    4% (2)
  • D
    80% (41)

Why each option

SSI injection exploits the Server-Side Includes feature by embedding malicious directives through unsanitized user input, enabling attackers to execute server-side commands such as file modification or deletion.

AQserver-side template injection

Server-side template injection (SSTI) exploits template engine vulnerabilities such as Jinja2 or Twig, not SSI directives used for auto-generating static page content.

BServer-side JS injection

Server-side JavaScript injection targets server-side JavaScript runtimes like Node.js by injecting malicious JS code, not SSI directives processed by the web server.

CCRLF injection

CRLF injection manipulates HTTP response headers by inserting carriage return and line feed characters, which is unrelated to SSI directives or auto-generated web content.

DA Server-side includes injectionCorrect

Server-Side Includes (SSI) injection occurs when a web application integrates SSI directives to auto-generate page content and accepts user input that is embedded into those directives without sanitization. Attackers can inject malicious SSI directives such as exec or include commands to read, modify, or erase server files. The scenario explicitly describes a feature integrated with SSI directives that accepts remote user inputs, which is the defining characteristic of SSI injection.

Concept tested: Server-Side Includes (SSI) injection attack identification

Source: https://owasp.org/www-community/attacks/Server-Side_Includes_(SSI)_Injection

Topics

#SSI injection#server-side includes#input validation#code injection

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice