Multiple choice technology security

In what type of attack does an intruder manipulate a URL in such a way that the Web server executes or reveals the contents of a file anywhere on the server, including those lying outside the document root directory?

  1. cross-site scripting

  2. command injection

  3. path traversal attacks

  4. SQL injection

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Path traversal attacks involve manipulating file paths in URLs (using sequences like '../') to access files outside the web root. Unlike SQL injection (targets databases), cross-site scripting (injects scripts), or command injection (executes commands), path traversal specifically targets file system access.