RCE in D-Link Dir-818lw Firmware

CVE-2018-19987

D-Link DIR-822 Rev.B 202KRb06, DIR-822 Rev.C 3.10B06, DIR-860L Rev.B 2.03.B03, DIR-868L Rev.B 2.05B02, DIR-880L Rev.A 1.20B01_01_i3se_BETA, and DIR-890L Rev.A 1.21B02_BETA devices mishandle IsAccessPoint in /HNAP1/SetAccessPointMode. In the SetAccessPointMode.php source code, the IsAccessPoint parameter is saved in the ShellPath script file without any regex checking. After the script file is executed, the command injection occurs. A vulnerable /HNAP1/SetAccessPointMode XML message could have shell metacharacters in the IsAccessPoint element such as the `telnetd` string.

Vulnerability class: Command Injection (OS Command Injection)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.120, 96.2th percentile (scored ); down from 0.129 30 days earlier. About EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2018-19987: fell from 0.129 to 0.120.

EPSS over last 30 days · oldest: 0.129 · newest: 0.120 · change: -0.009

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:

Also mentioned in 6 other repositories (ARPSyndicate/cvemon, caro-oviedo/Copy-Editing, CVEDB/PoC-List, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References