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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 3
- OpenEMR 4.1 - '/Interface/patient_file/encounter/trend_form.php?formname' Traversal Local File Inclusion EDB-36648 · webapps · Feb 1, 2012 · verified
- OpenEMR 4.1 - '/Interface/patient_file/encounter/load_form.php?formname' Traversal Local File Inclusion EDB-36649 · webapps · Feb 1, 2012 · verified
- OpenEMR 4.1 - '/contrib/acog/print_form.php?formname' Traversal Local File Inclusion EDB-36650 · webapps · Feb 1, 2012 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- OpenEMR 4.1 - Local File Inclusion http/cves/2012/CVE-2012-0991.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://www.htbridge.ch/advisory/HTB23069
- 78727 vdb-entry
- 51788 vdb-entry
- 20120201 Multiple vulnerabilities in OpenEMR mailing-list
- 47781 third-party-advisory
- 78729 vdb-entry
- 78728 vdb-entry
- openemr-formname-file-include(72914) vdb-entry
- 78730 vdb-entry
- http://www.open-emr.org/wiki/index.php/OpenEMR_Patches