nerdexam
CompTIA

PT0-002 · Question #484

While conducting a penetration test of a web application, the penetration tester enters the following URI: Which of the following attacks is the tester attempting?

The correct answer is C. Directory traversal. The penetration tester is attempting a Directory Traversal attack, which involves manipulating the URI to access files and directories outside of the intended web root by using sequences like ../ to navigate upward in the directory structure. This attempts to retrieve system…

Attacks and Exploits

Question

While conducting a penetration test of a web application, the penetration tester enters the following URI:

Which of the following attacks is the tester attempting?

Options

  • AXML injection
  • BSQL injection
  • CDirectory traversal
  • DBuffer overflow

How the community answered

(40 responses)
  • A
    3% (1)
  • C
    90% (36)
  • D
    8% (3)

Why each option

The penetration tester is attempting a Directory Traversal attack, which involves manipulating the URI to access files and directories outside of the intended web root by using sequences like ../ to navigate upward in the directory structure. This attempts to retrieve system files such as /etc/passwd.

AXML injection

XML injection involves manipulating XML input to exploit vulnerabilities in XML parsers, which is not what the `../etc/passwd` URI is designed to do.

BSQL injection

SQL injection attempts to interfere with database queries through input fields, not by manipulating file paths in a URI to access system files.

CDirectory traversalCorrect

The URI `.../etc/passwd` uses `../` sequences to navigate up the directory tree to access files or directories that are not intended to be publicly accessible, specifically targeting the `/etc/passwd` file, which is a common Linux system file containing user information. This technique is characteristic of a Directory Traversal (or Path Traversal) attack.

DBuffer overflow

Buffer overflow attacks involve writing more data than a buffer can hold to overwrite adjacent memory, typically leading to crashes or arbitrary code execution, and are not initiated through a simple URI path manipulation like this.

Concept tested: Web application attacks - Directory Traversal

Source: https://owasp.org/www-community/attacks/Path_Traversal

Topics

#Web Application Security#Directory Traversal#Penetration Testing#Vulnerability Discovery

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice