CVE-2018-10823
published 2018-10-17CVE-2018-10823: An issue was discovered on D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111…
PriorityP186high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
78.19%
99.5th percentile
An issue was discovered on D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 devices. An authenticated attacker may execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| dlink | dwr-111_firmware | <= 1.01 | — |
| dlink | dwr-116_firmware | <= 1.06 | — |
| dlink | dwr-512_firmware | <= 2.02 | — |
| dlink | dwr-912_firmware | <= 2.02 | — |
Detection & IOCsextracted from sources · hover to see the quote
snort
alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT D-Link DWR Command Injection Inbound (CVE-2018-10823)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/chkisg.htm"; content:"%3FSip%"; fast_pattern; nocase; distance:0; content:"%7C"; nocase; distance:0; reference:cve,2018-10823; classtype:attempted-admin; sid:2035953; rev:2; metadata:attack_target Networking_Equipment, created_at 2022_04_14, cve CVE_2018_10823, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, updated_at 2024_03_08, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;)
- →Exploit requests use HTTP GET to /chkisg.htm with a URL-encoded Sip parameter containing a pipe character (%7C) for command injection. Look for GET requests where the URI contains both '/chkisg.htm' and '%7C' (pipe).
- →Successful exploitation response will contain the contents of /etc/passwd, detectable by the regex pattern 'root:.*:0:0:' in the HTTP response body.
- →The attack requires prior authentication to the router. Monitor for authenticated sessions followed immediately by requests to /chkisg.htm with encoded shell metacharacters in the Sip parameter.
- →The Emergingthreats rule (SID 2035953) targets inbound traffic to $HOME_NET/$HTTP_SERVERS, classifying the attack as attempted-admin with high confidence, mapped to MITRE T1210 (Exploitation of Remote Services).
- ·Exploitation requires the attacker to be authenticated to the router first. Unauthenticated access alone is insufficient to trigger the command injection. ↗
- ·The vulnerability likely affects additional D-Link models beyond those explicitly listed, if they share the same firmware type. ↗
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/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
vulncheck8.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.
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.
GHSA
GHSA-qh9h-ccxh-x284: An issue was discovered on D-Link DWR-116 through 1
ghsa_unreviewed·2022-05-13
CVE-2018-10823 [HIGH] CWE-78 GHSA-qh9h-ccxh-x284: An issue was discovered on D-Link DWR-116 through 1
An issue was discovered on D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 devices. An authenticated attacker may execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
VulnCheck
D-Link dwr-116_firmware Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
vulncheck·2018·CVSS 8.8
CVE-2018-10823 [HIGH] D-Link dwr-116_firmware Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
D-Link dwr-116_firmware Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
An issue was discovered on D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 devices. An authenticated attacker may execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
Affected: D-Link dwr-116_firmware
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https://api.vulncheck.com/v3/index/sans-dshield?cve=CVE-2018-10823; https://www.fortinet.com/blog/threat-res
Suricata
ET EXPLOIT D-Link DWR Command Injection Inbound (CVE-2018-10823)
suricata·2022-04-14·CVSS 8.8
CVE-2018-10823 [HIGH] ET EXPLOIT D-Link DWR Command Injection Inbound (CVE-2018-10823)
ET EXPLOIT D-Link DWR Command Injection Inbound (CVE-2018-10823)
Rule: alert http any any -> [$HOME_NET,$HTTP_SERVERS] any (msg:"ET EXPLOIT D-Link DWR Command Injection Inbound (CVE-2018-10823)"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/chkisg.htm"; content:"%3FSip%"; fast_pattern; nocase; distance:0; content:"%7C"; nocase; distance:0; reference:cve,2018-10823; classtype:attempted-admin; sid:2035953; rev:2; metadata:attack_target Networking_Equipment, created_at 2022_04_14, cve CVE_2018_10823, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, updated_at 2024_03_08, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1210, mitre_technique_name Exploitation_Of_Remote_Services;)
Exploit-DB
D-Link Routers - Command Injection
exploitdb·2018-10-12·CVSS 8.8
CVE-2018-10823 [HIGH] D-Link Routers - Command Injection
D-Link Routers - Command Injection
---
## Shell command injection
CVE: CVE-2018-10823
CVSS v3: 9.1
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Description: An issue was discovered on D-Link routers:
DWR-116 through 1.06,
DWR-512 through 2.02,
DWR-712 through 2.02,
DWR-912 through 2.02,
DWR-921 through 2.02,
DWR-111 through 1.01,
and probably others with the same type of firmware.
An authenticated attacker may execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
PoC:
Login to the router.
Request the following URL after login:
`$ curl http://routerip/chkisg.htm%3FSip%3D1.1.1.1%20%7C%20cat%20%2Fetc%2Fpasswd`
See the passwd file contents in the response.
Nuclei
D-Link Routers - Remote Command Injection
nuclei·CVSS 8.8
CVE-2018-10823 [HIGH] D-Link Routers - Remote Command Injection
D-Link Routers - Remote Command Injection
D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 device may allow an authenticated attacker to execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
Template:
id: CVE-2018-10823
info:
name: D-Link Routers - Remote Command Injection
author: wisnupramoedya
severity: high
description: |
D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 device may allow an authenticated attacker to execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter
2018-10-17
Published
Exploited in the wild