Advisor
Wiki Threats & Attacks Application Attacks Path Traversal

Path Traversal

1 min read
Jump to:

Summary

Path Traversal is a type of application attack where an attacker manipulates file paths to access files and directories outside the intended scope, potentially exposing sensitive data or system files.

Key Characteristics

  • Exploits insufficient input validation on file path parameters.
  • Uses sequences like “../” to navigate directories upward.
  • Targets web applications, APIs, and file management systems.
  • Can lead to unauthorized access, data leakage, or remote code execution.
  • Often combined with other attacks such as remote file inclusion.

Defensive Controls

  • Implement strict input validation and sanitization for file paths.
  • Use allowlists to restrict accessible directories and files.
  • Employ secure coding practices to avoid direct user input in file operations.
  • Configure proper file system permissions to limit access.
  • Utilize web application firewalls (WAFs) to detect and block traversal attempts.

Related Security Solutions

Security solutions addressing Path Traversal include web application firewalls, secure coding frameworks, runtime application self-protection (RASP), and vulnerability scanners that detect improper file access controls.

Tags: Application Attacks Input Validation Path Traversal RASP secure coding Threats & Attacks vulnerability scanning web application firewall