Cloudanix VulnDB

CVE-2024-3272

Critical · 9.8 CISA KEV

CVSS

9.8

EPSS

98.1%

Published

Apr 4, 2024

CISA due date

May 2, 2024

Cloudanix analysis

Act now SSVC: Attend

Unsupported D-Link storage devices can be accessed remotely using built-in credentials, putting stored files and backups at serious risk unless the devices are replaced or isolated.

Active In The Wild Wormable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Trivial
Impact
Full Compromise
Component
Application
Class
Credential Exposure
Remediation
Workaround Only
Effort
High
Patch risk
High

What it actually does

This vulnerability exposes hard-coded credentials in end-of-life D-Link NAS HTTP management interfaces. A remote, unauthenticated attacker can send a crafted HTTP GET request to /cgi-bin/nas_sharing.cgi with the user parameter set to messagebus, causing the device to accept or disclose built-in credential material. Because the affected NAS appliances commonly provide file sharing, administrative web access, and storage services, successful exploitation can lead to unauthorized access to stored data, device configuration, and potentially follow-on compromise when chained with command execution flaws affecting the same product family. The CVSS 9.8 rating, network attack vector, no authentication requirement, public exploit availability, EPSS near 98%, and CISA KEV listing indicate high likelihood of real-world exploitation.

Why it matters to the business

Organizations with affected D-Link NAS devices exposed to untrusted networks risk unauthorized access to files, backups, media, archives, and credentials stored on those appliances. Since the affected models are end-of-life and have no fixed firmware, normal patching is not available; continued operation creates persistent operational risk. Compromise can result in data theft, tampering or deletion of stored files, service outages, loss of backup integrity, and use of the device as a foothold for broader network intrusion. The CISA KEV remediation deadline of 2024-05-02 has long passed, and active exploitation has been observed in the wild, so any reachable device should be treated as high priority for retirement or isolation.

How an attack unfolds

An attacker first scans the internet or internal address ranges for D-Link NAS web interfaces, typically looking for exposed HTTP/HTTPS management pages or CGI endpoints. After identifying a potentially affected model, the attacker sends a crafted request to /cgi-bin/nas_sharing.cgi using the hard-coded user value messagebus. If the device is vulnerable, the request allows unauthorized access through the affected HTTP GET request handler. The attacker can then enumerate shares, retrieve or modify files, inspect configuration, or combine the access with other publicly documented D-Link NAS vulnerabilities to execute commands, install malware, create persistence, or pivot into adjacent systems. Because the exploit is public and the devices are unsupported, opportunistic botnets and automated scanners can exploit exposed appliances at scale.

How to fix it

There are no vendor-supported fixed versions for the affected end-of-life D-Link NAS products. The primary remediation is to retire and replace affected devices with supported storage platforms. Until replacement is complete, remove the NAS management interface from the internet, block all inbound access from untrusted networks, restrict access to a tightly controlled management VLAN or VPN, and apply firewall rules that deny access to /cgi-bin/nas_sharing.cgi from non-administrative sources. Disable remote management and UPnP port forwarding, rotate credentials for accounts and services that may have been stored on or used by the NAS, and review all stored data for potential exposure. If compromise is suspected, do not rely on firmware reconfiguration alone; preserve evidence if needed, disconnect the device, rebuild or replace the appliance, and restore files from known-good backups.

How to confirm the fix worked

Confirm whether any affected D-Link NAS models remain in service, including DNS-320L, DNS-325, DNS-327L, DNS-340L, and related legacy D-Link NAS/NVR firmware lines listed as affected. Validate that no affected device exposes HTTP or HTTPS management services to the internet using external attack-surface scans and perimeter firewall reviews. Internally, scan for D-Link NAS web interfaces and test only with authorized, non-destructive checks for the presence of /cgi-bin/nas_sharing.cgi; a device should be considered exposed if the endpoint is reachable from unauthorized network segments. Confirm compensating controls by verifying that firewall rules block direct access to the management interface and that UPnP has not re-created port forwards. Since no fixed firmware is available, validation of remediation should focus on device retirement, replacement, or enforced isolation rather than version comparison.

Typical attack path

  1. Scan for internet-facing or internally reachable D-Link NAS web management interfaces.
  2. Fingerprint the appliance model, firmware, or CGI endpoints associated with DNS-320L, DNS-325, DNS-327L, DNS-340L, or related D-Link NAS products.
  3. Send a crafted HTTP GET request to /cgi-bin/nas_sharing.cgi with the user parameter set to messagebus.
  4. Confirm unauthorized access or credential exposure behavior from the vulnerable CGI handler.
  5. Enumerate NAS shares, stored files, users, device configuration, or backup content.
  6. Optionally chain with other D-Link NAS vulnerabilities to execute commands or deploy malware.
  7. Exfiltrate data, alter or delete files, use the NAS as a staging point, or pivot deeper into the network.

How to detect it

Review HTTP access logs from the NAS, reverse proxies, firewalls, WAFs, VPN concentrators, and network sensors for requests to /cgi-bin/nas_sharing.cgi, especially query strings containing user=messagebus. Prioritize investigation of requests from external IP addresses, unusual internal hosts, vulnerability scanners, or repeated requests across many devices. Look for follow-on activity after the CGI request, such as share enumeration, large file downloads, changes to NAS configuration, creation of new users, unexpected administrative logins, deletion or modification of backup files, and outbound connections from the NAS to unfamiliar hosts. Network detection should alert on HTTP GET requests to the vulnerable CGI path and on traffic patterns consistent with automated scanning. For host/device forensics, review NAS system logs, web logs, file timestamps, user/account configuration, cron or startup scripts if accessible, and any unfamiliar binaries or processes. Because active exploitation has been reported and public exploit code exists, absence of a single IOC is not sufficient; combine path/query-string searches with behavioral indicators such as abnormal access volume, new remote destinations, and unexpected file operations.

  • /cgi-bin/nas_sharing.cgi
  • user=messagebus
  • /cgi-bin/nas_sharing.cgi?user=messagebus
  • GET /cgi-bin/nas_sharing.cgi
  • GET /cgi-bin/nas_sharing.cgi?user=messagebus
  • nas_sharing.cgi?user=messagebus
  • passwd=&user=messagebus
  • user=messagebus&passwd=

What your security team should do

  • Immediately identify all D-Link DNS-320L, DNS-325, DNS-327L, DNS-340L, and related legacy D-Link NAS/NVR devices across internet-facing and internal networks.
  • Treat internet-exposed affected devices as likely targeted due to public exploits, active in-the-wild exploitation, KEV status, and very high EPSS.
  • Retire and replace affected end-of-life devices; do not plan long-term risk acceptance based on configuration changes alone.
  • Before replacement, block inbound HTTP/HTTPS management access from untrusted networks and restrict administration to a dedicated management network or VPN.
  • Search web, proxy, firewall, WAF, and NAS logs for requests to /cgi-bin/nas_sharing.cgi containing user=messagebus or other suspicious CGI query activity.
  • Inspect affected devices for unauthorized file changes, unknown users, unexpected scheduled tasks, unfamiliar binaries, abnormal outbound connections, and signs of botnet activity.
  • Rotate passwords, API keys, backup credentials, and service credentials that were stored on or accessible from the NAS.
  • Review backup integrity and ensure critical data exists on separate, known-good backup infrastructure.
  • If evidence of exploitation exists, isolate the device, preserve logs and disk images where practical, and perform incident response before reconnecting any replacement storage.
  • Update asset-management and procurement policies to flag unsupported network storage appliances for mandatory replacement before vendor end-of-life.

The record

** UNSUPPORTED WHEN ASSIGNED ** A vulnerability, which was classified as very critical, has been found in D-Link DNS-320L, DNS-325, DNS-327L and DNS-340L up to 20240403. This issue affects some unknown processing of the file /cgi-bin/nas_sharing.cgi of the component HTTP GET Request Handler. The manipulation of the argument user with the input messagebus leads to hard-coded credentials. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The associated identifier of this vulnerability is VDB-259283. NOTE: This vulnerability only affects products that are no longer supported by the maintainer. NOTE: Vendor was contacted early and confirmed immediately that the product is end-of-life. It should be retired and replaced.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities