Remote File Inclusion in PortailPhp 2 (chemin parameter)
CVE-2007-0820 describes multiple remote file inclusion (RFI) vulnerabilities in Cedric CLAIRE PortailPhp 2. The vulnerabilities exist in the 'chemin' parameter of the following scripts: mod_news/index.php, mod_news/goodies.php, and mod_search/index.php. An attacker can supply a remote URL to the 'chemin' parameter, causing the application to include and execute arbitrary PHP code hosted on a remote server. This is due to insufficient input validation on user-supplied parameters.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary PHP code on the target server, leading to full compromise of the affected web application and potentially the underlying system. Attackers can leverage this to install malware, steal data, or pivot to other systems.
If you can’t patch tonight, do this now.
As an immediate mitigation, set 'allow_url_fopen' and 'allow_url_include' to 'Off' in the PHP configuration to prevent remote file inclusion. Employ input validation to restrict the 'chemin' parameter to only allow local, expected values. Use web application firewalls to detect and block RFI attempts.
Patch, then assume compromise.
Upgrade to a fixed version of PortailPhp 2, if available, that properly sanitizes and validates the 'chemin' parameter. If no patch is available, manually audit the affected scripts to ensure user input is not directly passed to include/require statements without proper validation and sanitization. Disable allow_url_fopen and allow_url_include in php.ini to reduce risk.
No validated public exploits yet. Hidden: 4 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.