Description
Unrestricted file upload in interface/super/manage_site_files.php in versions of OpenEMR before 5.0.1.4 allows a remote authenticated attacker to execute arbitrary PHP code by uploading a file with a PHP extension via the images upload form and accessing it in the images directory.
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 2
- OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated) (2) EDB-50122 · webapps · Jul 13, 2021
- OpenEMR 5.0.1.3 - 'manage_site_files' Remote Code Execution (Authenticated) EDB-49998 · webapps · Jun 14, 2021
GitHub 1 repository
-
sec-it/exploit-CVE-2018-15139 ★ 2 · Jul 5, 2021
OpenEMR < 5.0.1.4 - (Authenticated) File upload - Remote command execution
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://www.databreaches.net/openemr-patches-serious-vulnerabilities-uncovered-by-project-insecurity/
- https://github.com/openemr/openemr/pull/1757/commits/c2808a0493243f618bbbb3459af23c7da3dc5485
- http://packetstormsecurity.com/files/163110/OpenEMR-5.0.1.3-Shell-Upload.html
- http://packetstormsecurity.com/files/163482/OpenEMR-5.0.1.3-Shell-Upload.html
- https://github.com/Hacker5preme/Exploits/tree/main/CVE-2018-15139-Exploit