vendor:
PHP/FI
by:
Unknown
5.4
CVSS
MEDIUM
Insecure File Inclusion
98
CWE
Product Name: PHP/FI
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested:
Unknown
Flawed Example Script in PHP/FI
The PHP/FI package, specifically versions shipped with mylog.html and mlog.html, is vulnerable to an insecure file inclusion vulnerability. The issue arises from the lack of escaping slashes in the include statement, allowing an attacker to specify any file on the system and view its contents. By manipulating the 'screen' parameter in the URL, an attacker can access files accessible to the http daemon user id.
Mitigation:
To mitigate this vulnerability, it is recommended to sanitize user input and ensure that the 'screen' parameter is properly validated before including files. Additionally, the use of a secure coding framework or library can help prevent insecure file inclusion vulnerabilities.