LFI
Local File Inclusions (LFI)
Check for LFI
/**
* Get the filename from a GET input
* Example - http://example.com/?file=filename.php
*/
$file = $_GET['file'];
/**
* Unsafely include the file
* Example - filename.php
*/
include('directory/' . $file);Payloads
FUZZ LFI ENDPOINTS
PHP Wrapper
LFI 2 RCE
/proc/self/environ
Via Apache Log Files
via SSH
via MAIL
Via DNS
Last updated
