Advisor
Wiki Threats & Attacks Application Attacks Directory Traversal

Directory Traversal

1 min read
Jump to:

Summary

Directory Traversal is a type of application attack where an attacker exploits insufficient input validation to access files and directories outside the intended web server root directory. This can lead to unauthorized disclosure of sensitive information, system compromise, or further exploitation.

Key Characteristics

  • Exploits vulnerabilities in file path handling within web applications.
  • Uses special character sequences like “../” to navigate directories.
  • Targets web servers and applications to access restricted files.
  • Can expose configuration files, source code, and sensitive data.
  • Often combined with other attacks for privilege escalation.

Defensive Controls

  • Implement strict input validation and sanitization to block traversal sequences.
  • Employ whitelisting for file paths and names.
  • Use secure coding practices to avoid direct user input in file access functions.
  • Configure web servers to restrict directory access permissions.
  • Deploy web application firewalls (WAFs) to detect and block traversal attempts.

Related Security Solutions

Web Application Firewalls (WAFs), Intrusion Detection and Prevention Systems (IDPS), secure coding frameworks, vulnerability scanners, and endpoint protection platforms are commonly used to detect, prevent, and mitigate Directory Traversal attacks.

Tags: Application Attacks Directory Traversal Input Validation Intrusion Detection secure coding Threats & Attacks vulnerability scanning web application firewall