Remote File Inclusion in OpenEMR C_FormEvaluation.class.php
A remote file inclusion vulnerability exists in OpenEMR 2.8.1 and earlier, specifically in contrib/forms/evaluation/C_FormEvaluation.class.php. When PHP's register_globals is enabled, an attacker can supply a remote URL via the GLOBALS[fileroot] parameter, leading to the inclusion and execution of arbitrary PHP code from remote sources.
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 server, potentially leading to full compromise of the affected system, data theft, or further attacks within the network.
If you can’t patch tonight, do this now.
As an immediate mitigation, disable register_globals in the PHP configuration. Restrict access to the vulnerable script and monitor for suspicious activity. Consider applying input validation and sanitization on all user-supplied parameters used in file inclusion.
Patch, then assume compromise.
Upgrade to a version of OpenEMR that addresses this vulnerability. Additionally, ensure that register_globals is disabled in the PHP configuration, and audit code for unsafe use of user-supplied variables in file inclusion functions.
No validated public exploits yet. Hidden: 1 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.