RCE in Mi Millet Router 3g Firmware
CVE-2019-18370
An issue was discovered on Xiaomi Mi WiFi R3G devices before 2.28.23-stable. The backup file is in tar.gz format. After uploading, the application uses the tar zxf command to decompress, so one can control the contents of the files in the decompressed directory. In addition, the application's sh script for testing upload and download speeds reads a URL list from /tmp/speedtest_urls.xml, and there is a command injection vulnerability, as demonstrated by api/xqnetdetect/netspeed.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.403, 98.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- FzBacon/CVE-2019-18370_XiaoMi_Mi_WIFI_RCE_analysis (1 star, last pushed 2023-04-14)
Also mentioned in 40 other repositories (0day404/vulnerability-poc, 20142995/nuclei-templates, 20142995/sectool, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/UltramanGaia/Xiaomi_Mi_WiFi_R3G_Vulnerability_POC/blob/master/remote… (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.