9.8
CRITICAL
CVE-2018-19987
D-Link DIR-800 Series Command Injection Vulnerability
Description

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.

INFO

Published Date :

May 13, 2019, 2:29 p.m.

Last Modified :

April 26, 2023, 7:27 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2018-19987 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2018-19987 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 D-link dir-880l_firmware
2 D-link dir-822_firmware
3 D-link dir-818lw_firmware
4 D-link dir-860l_firmware
5 D-link dir-868l_firmware
6 D-link dir-890l\/r_firmware
1 Dlink dir-822_firmware
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2018-19987.

URL Resource
https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990 Exploit Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

HTML Shell Python Dockerfile Makefile C

Updated: 2 years ago
0 stars 0 fork 0 watcher
Born at : Nov. 17, 2022, 7:04 p.m. This repo has been linked 10 different CVEs too.

None

Updated: 3 years, 5 months ago
0 stars 0 fork 0 watcher
Born at : June 6, 2021, 3:39 a.m. This repo has been linked 1 different CVEs too.

This repo has a blog post about my analysis for CVE-2018-19987 an authenticated OS command injection affecting multiple D-Link routers

Updated: 3 years, 6 months ago
2 stars 1 fork 1 watcher
Born at : Nov. 19, 2020, 11:01 p.m. This repo has been linked 1 different CVEs too.

Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis

emulation firmware arbitration analysis fuzzing

Shell Python Dockerfile Makefile C

Updated: 2 months, 2 weeks ago
632 stars 115 fork 115 watcher
Born at : Sept. 22, 2020, 6:20 a.m. This repo has been linked 10 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2018-19987 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2018-19987 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CWE Remap by [email protected]

    Oct. 03, 2019

    Action Type Old Value New Value
    Changed CWE CWE-77 CWE-77 CWE-78
  • Initial Analysis by [email protected]

    May. 15, 2019

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:L/Au:N/C:C/I:C/A:C)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990 No Types Assigned https://github.com/pr0v3rbs/CVE/tree/master/CVE-2018-19986%20-%2019990 Exploit, Third Party Advisory
    Added CWE CWE-77
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-818lw_firmware:2.05.b03:*:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-818lw:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-822_firmware:3.10b06:*:*:*:*:*:*:* *cpe:2.3:o:d-link:dir-822_firmware:202krb06:*:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-822:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-860l_firmware:2.03.b03:*:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-860l:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-868l_firmware:2.05b02:*:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-868l:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-880l_firmware:1.20b01_01_i3se:beta:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-880l:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:o:d-link:dir-890l\/r_firmware:1.21b02:beta:*:*:*:*:*:* OR cpe:2.3:h:d-link:dir-890l\/r:-:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2018-19987 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

58.18 }} 47.64%

score

0.97272

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability