312-49 · Question #139
Which of the following attacks allows an attacker to access restricted directories, including application source code, configuration and critical system files, and to execute commands outside of the…
The correct answer is C. Directory traversal. Directory traversal (also called path traversal) is an attack where an attacker manipulates file path inputs - typically using sequences like '../' - to navigate outside the web server's intended root directory. This can expose sensitive files such as source code, configuration…
Question
Which of the following attacks allows an attacker to access restricted directories, including application source code, configuration and critical system files, and to execute commands outside of the web server's root directory?
Options
- AUnvalidated input
- BParameter/form tampering
- CDirectory traversal
- DSecurity misconfiguration
How the community answered
(17 responses)- A6% (1)
- B6% (1)
- C88% (15)
Explanation
Directory traversal (also called path traversal) is an attack where an attacker manipulates file path inputs - typically using sequences like '../' - to navigate outside the web server's intended root directory. This can expose sensitive files such as source code, configuration files (which may contain credentials), and critical OS files. For example, a vulnerable URL might allow access to '/etc/passwd' on Linux or 'win.ini' on Windows. Proper input validation and server configuration are the primary defenses.
Topics
Community Discussion
No community discussion yet for this question.