Unauthenticated Command Injection in D-Link DNS-343 Mail Test
CVE-2018-25120 is a command injection vulnerability in D-Link DNS-343 ShareCenter devices running firmware 1.05 and earlier. The issue is present in the Mail Test functionality, where the web maintenance script submits data to the internal goForm endpoint '/goform/Mail_Test'. Multiple form parameters are incorporated directly into a call to a system email utility without proper input validation or sanitization. Because attacker-controlled input reaches a shell-invoked command path, a remote attacker can inject arbitrary shell metacharacters and commands. The vulnerability is exploitable without authentication and results in command execution in the context of the device's root account.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated remote attacker to execute arbitrary commands as root on the affected NAS device. This can lead to full compromise of the appliance, including unauthorized access to stored data, modification or deletion of files, installation of persistent malware or backdoors, reconfiguration of services, use of the device as a pivot point within the network, and complete loss of confidentiality, integrity, and availability of the system.
If you can’t patch tonight, do this now.
Do not expose the DNS-343 web management interface to the internet or untrusted networks. Restrict access to the administrative interface to a dedicated management network or specific trusted IP addresses using firewall rules or network ACLs. If possible, disable or avoid use of the Mail Test functionality. Place the device behind a VPN for administrative access, monitor for unexpected process execution or configuration changes, and segment the device from sensitive internal systems. Because the product is end-of-life, mitigation should be treated only as a temporary risk-reduction measure pending replacement.
Patch, then assume compromise.
Upgrade to a fixed firmware version if one is available from D-Link. However, the provided content states that the DNS-343 product line is end-of-life, so a vendor-supported security fix may not be available. The most appropriate remediation is to retire and replace affected DNS-343 devices with supported hardware. If the device must remain in service temporarily, remove or restrict access to the vulnerable management interface as much as possible until replacement is completed.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
5 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.