File Inclusion / Directory Traversal
LFI
file:///../../../etc/passwd
/etc/passwd on Linux or C:\Windows\boot.ini on Windows
#if input from parameters used as part of filenames
we can bypass by adding /../ in the
# if Blacklisting is not coded correctly
..././ and ....// would become ../ vice vers sa
cat .?/.*/.?/etc/passwd.
Bash allows for for the ? and * wildcards to be used as wildcard
#On PHP versions 5.3.4 and earlier, string-based detection could be bypassed by URL encoding the payload.
The characters ../ can be URL encoded into %2e%2e%2f, which will bypass the filter.PHP filter to convert file contents to ROT13
Command execution with PHP Expect wrapper
Expect wrapperUsing PHP Input wrapper for command execution
Input wrapper for command executionCommand execution with the PHP Zip wrapper
Zip wrapperThe Proc File System
Directory
Description
Directory
Description
Last updated