Security Engineering

A web app's diagnostic page passes a user-supplied hostname to the operating system shell. Logs show the web service account launching processes the page never intended. Which attack is this?

Show the answer

Correct answerD. Command injection

AWhy not this: Privilege escalation raises rights; the processes ran under the same web service account.

BWhy not this: Lateral movement means pivoting to other hosts; the activity stays on the web server.

CWhy not this: SQL injection abuses database queries; here the input reaches the OS shell, not a database.

DWhy this is right: Unsanitized input interpreted by the OS shell runs attacker-chosen commands, which is command injection.

Input handed to the OS shell and run as extra commands is command injection. SQL injection targets database queries, not the shell. The processes ran under the same web service account, so no privilege was gained and no other host was reached.