nerdexam
EC-Council

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.

Submitted by mike_84· Mar 6, 2026Hacking Web Servers

Question

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 structure of the server. What kind of attack is possible in this scenario?

Options

  • ACross-site scripting
  • BDenial of service
  • CSQL injection
  • DDirectory traversal

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    3% (1)
  • D
    89% (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.

ACross-site scripting

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 `../`.

BDenial of service

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.

CSQL injection

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.

DDirectory traversalCorrect

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

#directory traversal#web server vulnerabilities#path traversal

Community Discussion

No community discussion yet for this question.

Full 312-50V13 Practice