312-50V13 · Question #285
While testing a web application in development, you notice that the web server does not properly ignore the "dot dot slash" (../) character string and instead returns the file listing of a folder…
The correct answer is D. Directory traversal. The vulnerability described, where a web server fails to properly sanitize ../ sequences, allows an attacker to navigate the file system outside of the intended web root, which is known as a directory traversal attack.
Question
Options
- ACross-site scripting
- BDenial of service
- CSQL injection
- DDirectory traversal
How the community answered
(36 responses)- A3% (1)
- B6% (2)
- C3% (1)
- D89% (32)
Why each option
The vulnerability described, where a web server fails to properly sanitize `../` sequences, allows an attacker to navigate the file system outside of the intended web root, which is known as a directory traversal attack.
Cross-site scripting (XSS) involves injecting malicious client-side scripts into web pages viewed by other users, which is unrelated to navigating the server's file system with `../`.
Denial of service (DoS) attacks aim to make a service unavailable to legitimate users, and while directory traversal might *lead* to a DoS if critical files are deleted, it is not the primary mechanism of the attack described.
SQL injection targets backend databases through input fields to execute arbitrary SQL commands, and is unrelated to manipulating file paths with `../` to access server directories.
The 'dot dot slash' (`../`) character string is a common method used in directory traversal (also known as path traversal) attacks. When a web server fails to properly validate or sanitize user input containing these sequences, an attacker can manipulate file paths to access directories and files stored outside the web root directory, potentially leading to the disclosure of sensitive information or execution of arbitrary code.
Concept tested: Directory traversal vulnerability
Source: https://owasp.org/www-community/attacks/Path_Traversal
Topics
Community Discussion
No community discussion yet for this question.