A vulnerability was found in D-Link DNS-320, DNS-320LW, DNS-325 and DNS-340L up to 20241028. It has been declared as critical. Affected by this vulnerability is the function cgi_user_add of the file /cgi-bin/account_mgr.cgi?cmd=cgi_user_add. The manipulation of the argument name leads to os command injection. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used.
The vulnerability occurs in the cgi_user_add function handled by the /cgi-bin/account_mgr.cgi?cmd=cgi_user_add file. By manipulating the 'name' parameter sent to this endpoint, an attacker can inject arbitrary system commands that will be executed by the device. The exploit has been publicly released and can be exploited by third parties, although the complexity of carrying out the attack is relatively high.
An attacker can remotely execute arbitrary operating system commands on the vulnerable NAS device, leading to complete compromise of the device — loss of confidentiality, integrity, and availability of stored data.
Apply patches available from the manufacturer according to the references. Since D-Link DNS-320, DNS-320LW, DNS-325, and DNS-340L models may be devices withdrawn from official support (EoL), it is recommended to isolate these devices from the public network, restrict access to the administrative interface exclusively to trusted IP addresses, and consider migrating to newer, supported hardware.
D-Link DNS-320, DNS-320LW, DNS-325, and DNS-340L in all firmware versions up to and including 20241028
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDlink Dns 320
HWDlinkall versionsDlink Dns 320 Firmware
OSDlinkall versionsDlink Dns 320lw
HWDlinkall versionsDlink Dns 320lw Firmware
OSDlinkall versionsDlink Dns 325
HWDlinkall versionsDlink Dns 325 Firmware
OSDlinkall versionsDlink Dns 340l
HWDlinkall versionsDlink Dns 340l Firmware
OSDlinkall versions
Related vulnerabilities
D-Link DNS-320L/325/327L/340L — zakodowane na stałe poświadczenia (hard-coded credentials)
Command injection w D-Link DNS-320 umożliwiający zdalny RCE
D-Link DNS-320: RCE przez command injection w login_mgr.cgi
Command injection w D-Link DNS-320/325/340L przez parametr group
Stack-based buffer overflow w login_mgr.cgi urządzeń D-Link — RCE