Hexret

Web Security · Authorization

Path Traversal

Also known as: Directory Traversal

A file path built from user input escapes the intended directory with sequences like ../../etc/passwd and reads or writes files elsewhere on the server. Resolve the path, then verify it still lies inside the allowed base directory, and prefer indirect references over raw filenames.

Where you practice it

Related terms