Description
An issue was discovered in custom/ajax_download.php in OpenEMR before 5.0.2 via the fileName parameter. An attacker can download any file (that is readable by the user www-data) from server storage. If the requested file is writable for the www-data user and the directory /var/www/openemr/sites/default/documents/cqm_qrda/ exists, it will be deleted from server.
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 1
- OpenEMR 5.0.1.7 - 'fileName' Path Traversal (Authenticated) EDB-50037 · webapps · Jun 21, 2021
GitHub 2 repositories
-
sec-it/exploit-CVE-2019-14530 ★ 4 · Jun 30, 2021
OpenEMR < 5.0.2 - (Authenticated) Path Traversal - Local File Disclosure
-
Wezery/CVE-2019-14530 ★ 0 · Aug 13, 2019
OpenEMR security issue
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 <5.0.2 - Local File Inclusion http/cves/2019/CVE-2019-14530.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://github.com/openemr/openemr/pull/2592
- https://github.com/Wezery/CVE-2019-14530
- http://packetstormsecurity.com/files/163215/OpenEMR-5.0.1.7-Path-Traversal.html
- http://packetstormsecurity.com/files/163375/OpenEMR-5.0.1.7-Path-Traversal.html
- https://github.com/Hacker5preme/Exploits/tree/main/CVE-2019-14530-Exploit