nerdexam
CompTIA

PT0-002 · Question #450

A penetration tester is performing an assessment of an application that allows users to upload documents to a cloud-based file server for easy access anywhere in the world. Which of the following…

The correct answer is A. Directory traversal attack. A directory traversal attack, also known as a path traversal attack, is a method used to exploit insufficient security validation or sanitization of user-supplied input file names. The goal of this attack is to access directories and files that are stored outside the web root…

Attacks and Exploits

Question

A penetration tester is performing an assessment of an application that allows users to upload documents to a cloud-based file server for easy access anywhere in the world. Which of the following would most likely allow a tester to access unintentionally exposed documents?

Options

  • ADirectory traversal attack
  • BCross-site request forgery
  • CCross-site scripting attack
  • DSession attack

How the community answered

(29 responses)
  • A
    76% (22)
  • B
    7% (2)
  • C
    14% (4)
  • D
    3% (1)

Explanation

A directory traversal attack, also known as a path traversal attack, is a method used to exploit insufficient security validation or sanitization of user-supplied input file names. The goal of this attack is to access directories and files that are stored outside the web root folder. By manipulating variables that reference files with "../" sequences and its variations, attackers can access restricted directories and execute commands outside of the web server's root directory. In the context of an application that allows users to upload documents to a cloud-based file server, an attacker might exploit a directory traversal vulnerability to navigate to directories that contain sensitive documents. If the file upload functionality is not properly secured, an attacker could upload a file with a payload designed to perform directory traversal. This could allow access to confidential files that are otherwise protected by the application's access control mechanisms.

Topics

#Directory Traversal#Path Traversal#Web Application Vulnerabilities#File Access

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice