cbcvebase.
CVE-2024-3273
published 2024-04-04

CVE-2024-3273: ** UNSUPPORTED WHEN ASSIGNED ** A vulnerability, which was classified as critical, was found in D-Link DNS-320L, DNS-325, DNS-327L and DNS-340L up to 20240403…

PriorityP197critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2024-05-02
Exploited in the wild
EPSS
100.00%
100.0th percentile
** UNSUPPORTED WHEN ASSIGNED ** A vulnerability, which was classified as critical, was found in D-Link DNS-320L, DNS-325, DNS-327L and DNS-340L up to 20240403. Affected is an unknown function of the file /cgi-bin/nas_sharing.cgi of the component HTTP GET Request Handler. The manipulation of the argument system leads to command injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-259284. 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

11 ranges
VendorProductVersion rangeFixed in
d-linkdns-320l
d-linkdns-325
d-linkdns-327l
d-linkdns-340l
dlinkdns-320l_firmware
dlinkdns-320l_firmware
dlinkdns-320l_firmware
dlinkdns-325_firmware
dlinkdns-327l_firmware
dlinkdns-327l_firmware
dlinkdns-340l_firmware

Detection & IOCsextracted from sources · hover to see the quote

path/cgi-bin/nas_sharing.cgi
url/cgi-bin/nas_sharing.cgi?user=mydlinkBRionyg&passwd=YWJjMTIzNDVjYmE&cmd=15&system={{base64(cmd)}}
otherusername: messagebus, password: (empty)
filenameskid.x86
otherFOFA query: app="D_Link-DNS-ShareCenter"
yara
regex: uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)
  • Exploit sends HTTP GET request to /cgi-bin/nas_sharing.cgi with hardcoded credentials (user=mydlinkBRionyg, passwd=YWJjMTIzNDVjYmE) and a base64-encoded command in the 'system' parameter.
  • Successful exploitation returns HTTP 200 with output matching 'uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)' in the response body, indicating OS command execution.
  • The backdoor account 'messagebus' with an empty password can be chained with the 'system' parameter command injection to achieve unauthenticated RCE.
  • Post-exploitation payload observed is a Mirai variant named skid.x86, indicating botnet/DDoS activity after successful compromise.
  • The command injection is delivered via a base64-encoded payload in the HTTP GET 'system' parameter of the nas_sharing.cgi endpoint.
  • ·Affected devices lack automatic update or alert delivery capabilities, so owners cannot be automatically notified of exploitation.
  • ·Over 92,000 vulnerable D-Link NAS devices were found exposed online via internet scans at time of disclosure.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.