CVE-2018-16130
published 2018-11-27CVE-2018-16130: System command injection in request_mitv in Xiaomi Mi Router 3 version 2.22.15 allows attackers to execute arbitrary system commands via the "payload" URL…
PriorityP266high8.8CVSS 3.0
AVNACLPRLUINSUCHIHAH
EPSS
23.96%
97.6th percentile
System command injection in request_mitv in Xiaomi Mi Router 3 version 2.22.15 allows attackers to execute arbitrary system commands via the "payload" URL parameter.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| mi | miwifi_os | — | — |
Detection & IOCsextracted from sources · hover to see the quote
url/cgi-bin/luci/;stok=
path/api/xqsmarthome/request_mitv
snort
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET EXPLOIT Mi TV Integration Remote Code Execution CVE-2018-16130"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/luci/|3b|stok="; fast_pattern; content:"/api/xqsmarthome/request_mitv?payload={"; distance:0; content:"$("; distance:0; reference:url,blog.securityevaluators.com/show-mi-the-vulns-exploiting-command-injection-in-mi-router-3-55c6bcb48f09; reference:cve,2018-16130; classtype:attempted-admin; sid:2030312; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2020_06_11, cve CVE_2018_16130, deployment Perimeter, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_03_07, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)- →Look for inbound HTTP GET requests targeting the path /cgi-bin/luci/;stok= followed by /api/xqsmarthome/request_mitv?payload={ — the combination of these two URI components is the fast-pattern anchor for this exploit.
- →The injection payload uses shell command substitution syntax $( within the URL parameter 'payload'; detect the literal string $( appearing after the request_mitv endpoint in the URI.
- →The attack is delivered via a GET request to the router's CGI interface; monitor IoT/perimeter devices for unexpected outbound connections following such requests as an indicator of successful RCE. ↗
- ·The Snort/Suricata rule targets $HOME_NET as the destination; ensure HOME_NET is correctly scoped to include Xiaomi Mi Router 3 devices (IoT segment) to avoid missed detections.
- ·The ET rule (sid:2030312) has been updated multiple times (created 2020-06-11, last updated 2024-03-07); ensure the latest revision (rev:3) is deployed.
CVSS provenance
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.09.0CRITICALAV:N/AC:L/Au:S/C:C/I:C/A:C
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Suricata
ET EXPLOIT Mi TV Integration Remote Code Execution CVE-2018-16130
suricata·2020-06-11·CVSS 8.8
CVE-2018-16130 [HIGH] ET EXPLOIT Mi TV Integration Remote Code Execution CVE-2018-16130
ET EXPLOIT Mi TV Integration Remote Code Execution CVE-2018-16130
Rule: alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET EXPLOIT Mi TV Integration Remote Code Execution CVE-2018-16130"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/luci/|3b|stok="; fast_pattern; content:"/api/xqsmarthome/request_mitv?payload={"; distance:0; content:"$("; distance:0; reference:url,blog.securityevaluators.com/show-mi-the-vulns-exploiting-command-injection-in-mi-router-3-55c6bcb48f09; reference:cve,2018-16130; classtype:attempted-admin; sid:2030312; rev:3; metadata:affected_product Linux, attack_target IoT, created_at 2020_06_11, cve CVE_2018_16130, deployment Perimeter, confidence High, signature_severity Major, tag Description_Generated_By_Proofpoint_Nexus, updat
No public exploits indexed.
No writeups or analysis indexed.
2018-11-27
Published