cbcvebase.
CVE-2024-3272
published 2024-04-04

CVE-2024-3272: ** 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…

PriorityP193critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2024-05-02
Exploited in the wild
EPSS
98.04%
99.9th percentile
** 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

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=messagebus&passwd=&cmd=15&system=aWQ=
hash859e679f8e8be4a4c895139fb7fb1b177627bbe712e1ed4c316ec85008426db8
yara
regex: uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)
  • Detect exploitation attempts by monitoring HTTP GET requests to /cgi-bin/nas_sharing.cgi with the parameter user=messagebus and an empty passwd= field.
  • The base64 value 'aWQ=' in the system= parameter decodes to 'id', indicating the attacker is probing for command execution via the system parameter. Alert on base64-encoded OS commands in this field.
  • Successful exploitation responses will contain 'uid=' and 'gid=' strings in the HTTP response body, indicating OS command output was returned.
  • Use FOFA query app="D_Link-DNS-ShareCenter" to identify exposed D-Link NAS devices on the internet for asset inventory and attack surface reduction.
  • CVE-2024-3272 is chained with CVE-2024-3273 (command injection) to achieve unauthenticated RCE. Detection rules should look for both vulnerabilities being exploited in sequence against the same source IP.
  • Exploitation of CVE-2024-3273 requires valid user= and passwd= parameters; CVE-2024-3272 supplies these by using 'messagebus' as the username with an empty password.
  • ·The 'messagebus' username is a standard Linux system user with no password, not a traditional backdoor account. The vulnerability is that the application accepts this system user for authentication without validating whether the account should be permitted to log in.
  • ·All affected D-Link models (DNS-320L, DNS-325, DNS-327L, DNS-340L) are end-of-life and will receive no patches. Detection and blocking are the only mitigations available.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
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.