PT-2019-6341 · D Link · D-Link Dir-822+1

Pr0V3Rbs

·

Published

2019-01-07

·

Updated

2023-04-26

·

CVE-2018-19986

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions D-Link DIR-818LW Rev.A version 2.05.B03 D-Link DIR-822 B1 version 202KRb06
Description The issue affects the /HNAP1/SetRouterSettings message, where the RemotePort parameter is vulnerable. This vulnerability can be exploited by sending a specially crafted XML message with shell metacharacters in the RemotePort element, such as the telnetd string. The lack of regex checking in the SetRouterSettings.php source code and the IPTWAN build command function of the iptwan.php source code allows the exploitation of this issue. Successful exploitation can allow a remote attacker to impact the confidentiality, integrity, and availability of protected information.
Recommendations For D-Link DIR-818LW Rev.A version 2.05.B03, consider disabling the RemotePort parameter in the /HNAP1/SetRouterSettings message until a patch is available. For D-Link DIR-822 B1 version 202KRb06, restrict access to the IPTWAN build command function in the iptwan.php source code to minimize the risk of exploitation. Avoid using the RemotePort parameter in the affected API endpoint until the issue is resolved.

Exploit

Fix

OS Command Injection

Weakness Enumeration

Related Identifiers

BDU:2023-02617
BDU:2023-02618
BDU:2023-02679
CVE-2018-19986

Affected Products

D-Link Dir-818Lw
D-Link Dir-822