Skip to content
application-security

Path Traversal

Path Traversal (Directory Traversal)

Definition

Path traversal attacks exploit insufficient validation of file paths to access files outside the intended directory. By inserting sequences like `../` into file path parameters, attackers can read sensitive files such as `/etc/passwd`, application configuration files, or private keys.

Prevention requires canonicalizing paths before use and validating that the resolved path is within an allowed base directory.

Can this ship? Are we exposed? Can you prove it?

Every CISO is asking these three questions. We answer them with facts, not guesses, from repository to runtime.