CVE-2012-0991
Description
Multiple directory traversal vulnerabilities in OpenEMR 4.1.0 allow remote authenticated users to read arbitrary files via a .. (dot dot) in the formname parameter to (1) contrib/acog/print_form.php; or (2) load_form.php, (3) view_form.php, or (4) trend_form.php in interface/patient_file/encounter.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
OpenEMR 4.1 - '/contrib/acog/print_form.php?formname' Traversal Local File Inclusion
source: https://www.securityfocus.com/bid/51788/info
OpenEMR is prone to local file-include and command-injection vulnerabilities because it fails to properly sanitize user-supplied input.
A remote attacker can exploit these issues to execute arbitrary shell commands with the privileges of the user running the application, obtain potentially sensitive information, and execute arbitrary local scripts in the context of the Web server process. This could allow the attacker to compromise the application and the computer; other attacks are also possible.
OpenEMR 4.1.0 is vulnerable; other versions may also be affected.
http://www.example.com/contrib/acog/print_form.php?formname=../../../etc/passwd%00
OpenEMR 4.1 - '/Interface/patient_file/encounter/load_form.php?formname' Traversal Local File Inclusion
OpenEMR 4.1 - '/Interface/patient_file/encounter/trend_form.php?formname' Traversal Local File Inclusion
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| openemr | openemr | 4.1.0 | |
References
- http://archives.neohapsis.com/archives/bugtraq/2012-02/0004.html
- http://osvdb.org/78727
- http://osvdb.org/78728
- http://osvdb.org/78729
- http://osvdb.org/78730
- http://secunia.com/advisories/47781
- http://www.open-emr.org/wiki/index.php/OpenEMR_Patches
- http://www.securityfocus.com/bid/51788
- https://exchange.xforce.ibmcloud.com/vulnerabilities/72914
- https://www.htbridge.ch/advisory/HTB23069
- http://archives.neohapsis.com/archives/bugtraq/2012-02/0004.html
- http://osvdb.org/78727
- http://osvdb.org/78728
- http://osvdb.org/78729
- http://osvdb.org/78730
- http://secunia.com/advisories/47781
- http://www.open-emr.org/wiki/index.php/OpenEMR_Patches
- http://www.securityfocus.com/bid/51788
- https://exchange.xforce.ibmcloud.com/vulnerabilities/72914
- https://www.htbridge.ch/advisory/HTB23069
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.