Testing for LFI
File Inclusion Functions (Read/Execute/Remote)
Function
Read
Execute
Remote
Basic LFI Test Payloads
Directory Traversal
LFI Bypass Techniques
Non-Recursive Filter Bypass
Null-byte and alternate encodings (PHP / app-specific)
URL Encoding
Approved Path Bypass
Null Byte (PHP < 5.5)
Path Truncation (PHP < 5.3)
PHP Wrappers
php://filter (Read Source Code)
data:// Wrapper (RCE)
php://input Wrapper (RCE)
expect:// Wrapper (RCE)
LFI to RCE via Log Poisoning
LFI to RCE via PHP Sessions
RCE via SSH
LFI when the parameter has a prefix (e.g. notes=files/...)
notes=files/...)RCE via Apache logs
Remote File Inclusion (RFI)
Verify RFI
HTTP
FTP
SMB (Windows - No allow_url_include needed)
LFI with File Uploads
GIF Shell
ZIP Wrapper
Phar Wrapper
LFI to RCE via credentials files
Automated LFI Scanning
Fuzz for Parameters
Fuzz for LFI
Fuzz for Webroot
Fuzz for Server Files
Reading binary files and /proc/self/fd
Bypassing Path Normalization
Last updated