Path Traversal

Cybersecurity Glossary APIs & Server-Side Security

Path Traversal

A vulnerability that allows attackers to access files outside the intended directory by manipulating file paths with sequences like ../.

Path Traversal (also called Directory Traversal or Dot-Dot-Slash attack) is a vulnerability that allows attackers to access files and directories outside the intended directory by manipulating file path references using sequences like ../.

How It Works

Applications often use user input to construct file paths. If input is not properly validated, attackers can use relative path sequences to escape the intended directory and access arbitrary files on the filesystem.

See Also