First published: Mon May 13 2019(Updated: )
In the /HNAP1/SetRouterSettings message, the RemotePort parameter is vulnerable, and the vulnerability affects D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices. In the SetRouterSettings.php source code, the RemotePort parameter is saved in the $path_inf_wan1."/web" internal configuration memory without any regex checking. And in the IPTWAN_build_command function of the iptwan.php source code, the data in $path_inf_wan1."/web" is used with the iptables command without any regex checking. A vulnerable /HNAP1/SetRouterSettings XML message could have shell metacharacters in the RemotePort element such as the `telnetd` string.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
D-link Dir-818lw Firmware | =2.05.b03 | |
Dlink Dir-818lw | ||
D-link Dir-822 Firmware | =202krb06 | |
Dlink Dir-822 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-19986 is a vulnerability in the /HNAP1/SetRouterSettings message in D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices where the RemotePort parameter is vulnerable.
CVE-2018-19986 has a severity rating of 9.8 (critical).
D-Link DIR-818LW Rev.A 2.05.B03 and DIR-822 B1 202KRb06 devices are affected by CVE-2018-19986.
To fix CVE-2018-19986, it is recommended to update the firmware of the affected devices to the latest version provided by the manufacturer.
The CWE (Common Weakness Enumeration) of CVE-2018-19986 is 78.