php wrappers, LFI
Note: preinstalled in latest kali iso. Works for http, ftp, tftp
Workarounds
NOTE: Read the file that is running LFI to get more information about the code.
Bypassing filters using
....//
Using null byte %00:
/etc/passwd%00
URL encoding techniques (double encoding)
LFI wordlist
/usr/share/seclists/Fuzzing/LFI/LFI-LFISuite-pathtotest.txt
.php wrappers
LFI to RCE (linux)
LFI Paths (linux)
LFI Paths (windows)
LFI PHP Code Analysis
The above code block includes any value given to the file paramter.
The above code block includes any value given to the file parameter as long as its in the downloads directory. To bypass use ../../../<>
The above code block includes any value given to the file parameter as long as its in the downloads directory and appends .php
to the user input value. To bypass use ../../../<>
and value ending with %00
.
When there is substitution for ../
, bypass using ....//
as it will convert to ../
RFI PHP Code Analysis
Requirement for RFI to work is allow_url_fopen
and allow_url_include
Last updated