January 2018
Intermediate to advanced
340 pages
8h 6m
English
Local File Inclusion (LFI) and Remote File Inclusion (RFI) are other OWASP Top 10 vulnerabilities. They refer to the danger of loading files from the local file system or a remote host that were not intended to be loaded, or loading the intended files but with contaminated data. Remote file includes are dangerous because a user may supply a remote file from a malicious server if precaution is not taken.
Do not open a file from the local file system if the filename is specified by the user without any sanitization. Consider an example where a file is returned by a web server upon request. The user may be able to request a file with sensitive system information, such as /etc/passwd, with a URL like this:
http://localhost/displayFile?filename=/etc/passwd ...
Read now
Unlock full access