Local or Remote File Inclusion or Read
Summary
LFI/RFI allows an attacker to include local or remote files into a web application, leading to potential information disclosure, code execution, or server compromise.
Testing methodology
Description
Local File Inclusion (LFI) and Remote File Inclusion (RFI) are vulnerabilities that occur when a web application allows user-controlled input to specify a file to be included or executed. Attackers can exploit this vulnerability to disclose sensitive information, execute arbitrary code, or compromise the server.
Remediations
- Use an Allow-List of allowed directories application users may read files from.
- If possible, disable file inclusion features for the application users.
Affected components
- Server