PT-2019-1623 · D Link · D-Link Dir-878

Published

2019-02-12

·

Updated

2021-04-23

·

CVE-2019-8319

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions D-Link DIR-878 version 1.12A1
Description The issue is related to a Command Injection vulnerability in the SetStaticRouteIPv4Settings API function, allowing a remote attacker to execute arbitrary code and gain a root shell. This occurs when the HNAP API function triggers a call to the system function with untrusted input from the request body, as demonstrated by shell metacharacters in the Gateway field. The vulnerability can be exploited via a crafted /HNAP1 POST request.
Recommendations For D-Link DIR-878 version 1.12A1, consider disabling the SetStaticRouteIPv4Settings function until a patch is available to prevent exploitation. Restrict access to the /HNAP1 API endpoint to minimize the risk of arbitrary code execution. Avoid using shell metacharacters in the Gateway field to prevent command injection. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

OS Command Injection

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2019-01170
CVE-2019-8319

Affected Products

D-Link Dir-878