Threats, Vulnerabilities, and Attacks
A request for /download?file=../../../../etc/passwd returns the server's password file. Which attack is this?
Show the answer
Correct answerD. Directory traversal
AWhy not this: Command injection needs shell metacharacters and commands in the input, not ../ path sequences.
BWhy not this: Forgery tricks a browser or server into sending a request the user never intended.
CWhy not this: Buffer overflow relies on oversized input that overwrites memory, not path sequences.
DWhy this is right: ../ sequences that reach files outside the web root are the signature of directory traversal.
Repeated ../ sequences in a file parameter climb out of the web root to read files the application should not serve, which is directory traversal. Command injection would need shell syntax such as a semicolon followed by a command.