CVE-2018-19986
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.
Published:May 13, 2019
Last Modified:Nov 21, 2024
EPS:May 13, 2019
EPSS Score:0.54881
CVSS Score:9.8
Affected Products
Vendor
Product
Action
Vendor
D-link
Product
Dir-818lw Firmware
D-link
Dir-818lw Firmware
Vendor
D-link
Product
Dir-822 Firmware
D-link
Dir-822 Firmware
Vendor
Dlink
Product
Dir-818lw
Dlink
Dir-818lw
Vendor
Dlink
Product
Dir-822
Dlink
Dir-822
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
