Hay còn gọi là directory traversal, là một kỹ thuật giúp truy cập vào những tập tin nằm bên ngoài thư mục gốc của ứng dụng.

Để tấn công, cần sử dụng một URL có nhận vào input là tên tập tin, ví dụ như sau: http://webapp.thm/get.php?file=. Ta truyền vào giá trị của parameter file là chuỗi các ký tự ../ (nhằm truy xuất đến thư mục cha). Khi đường dẫn chạm đến một tập tin, nội dung của tập tin sẽ được xuất ra.

Sau đây là danh sách các tập tin phổ biến có thể khai thác ở các hệ điều hành khác nhau:

LocationDescription
/etc/issuecontains a message or system identification to be printed before the login prompt.
/etc/profilecontrols system-wide default variables, such as Export variables, File creation mask (umask), Terminal types, Mail messages to indicate when new mail has arrived
/etc/passwdhas all registered user that has access to a system
/etc/shadowcontains information about the system’s users’ passwords
/root/.bash_historycontains the history commands for root user
/root/.ssh/id_rsaprivate SSH keys for a root or any known valid user on the server
/var/log/dmessagecontains global system messages, including the messages that are logged during system startup
/var/mail/rootall emails for root user
/var/log/apache2/access.logthe accessed requests for Apache webserver
/proc/versionspecifies the version of the Linux kernel
C:\boot.inicontains the boot options for computers with BIOS firmware