BACK TO TOPICS
Intermediate

Directory Traversal

1. Path Traversal Explained

Directory Traversal (or Path Traversal) allows an attacker to read arbitrary files on the server that is running an application.

The Mechanism

It exploits insufficient security validation / sanitization of user-supplied input file names, so that characters representing "traverse to parent directory" are passed through to the file APIs.

The classic sequence is ../ (dot-dot-slash), which means "go up one directory".

Module Progress

1Path Traversal Explained
2Attack Scenarios
3Bypassing Filters
4Vulnerable Code
5Prevention
Progress20%