CVE DatabaseCVE-2021-40655
한국어 권고문 →
CVE-2021-406557.5/HIGHCISA KEVCWE-863CWE-863

D-Link DIR-605 Router Information Disclosure and Credential Theft Vulnerability (CVE-2021-40655) Analysis & Mitigation Guide

⚡ Jump to Patch
Affected Vendors
d-link
Affected Components
dir-605, dir-605_b2_firmware
Published Date
2021-09-24
CVSS v3.1
7.5
HIGH
EPSS (30d)
87.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

D-Link DIR-605 B2 Firmware Version 2.01MT and prior

Impact

Unauthenticated remote attackers can retrieve plaintext administrator credentials by sending a forged POST request to the /getcfg.php page

Mitigation

Immediately decommission and replace the legacy EOL device, or disable remote WAN management and restrict network access

Affected Products & Version Scope

D-Link DIR-605 B2 Firmware Version 2.01MT and earlier (End-of-Life models)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Since the D-Link DIR-605 is an End-of-Life (EOL) device, official security patches are no longer provided. The recommended action is to replace the hardware with a supported model. If replacement is not immediately possible, restrict all external access.

2. Temporary Workaround & Hardening Configuration

Disable the 'Remote Management' feature in the router's administration panel. If an upstream firewall is present, block all inbound HTTP/HTTPS traffic to the router's management IP using the following rules:

bash
# Block external WAN access to the router's web interface (e.g., 192.168.1.1)
iptables -A INPUT -p tcp -d 192.168.1.1 --dport 80 -j DROP
iptables -A INPUT -p tcp -d 192.168.1.1 --dport 443 -j DROP

3. Log Audit & IoC Verification Commands

Audit network traffic and web server logs for unauthorized POST requests to /getcfg.php. You can test if your device is exposed using the following curl command:

bash
# Test if the target router leaks credentials via the vulnerable endpoint
curl -s -d 'services=DEVICE.ACCOUNT' 'http://[TARGET_IP]/getcfg.php' | grep -E '<password>|<username>'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Decommission the EOL D-Link DIR-605 router immediately and replace it with a modern, supported device.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2021-40655) is an incorrect authorization issue (CWE-863) in the /getcfg.php page of D-Link DIR-605 B2 routers. The root cause lies in the lack of proper session validation on the script responsible for outputting system configuration data, allowing unauthenticated users to directly query sensitive endpoints.

2. Exploitation Mechanics & Attack Scenario

An attacker sends a crafted HTTP POST request targeting the /getcfg.php endpoint of the vulnerable router. By forging specific parameters in the request body, the attacker bypasses authentication checks. The server then responds with the system configuration file containing the administrator's plaintext username and password, leading to complete device takeover.

3. Infrastructure & Business Impact

This vulnerability is actively exploited in the wild and is listed in the CISA KEV catalog with a high EPSS score of over 0.87. Successful exploitation allows attackers to compromise the router, modify DNS settings to redirect traffic, or perform lateral movement to compromise internal corporate networks.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2021-40655)

FAQ

Q1. How critical is CVE-2021-40655 and is it actively exploited in the wild?

CVE-2021-40655 is rated CVSS 7.5 (HIGH) with a 30-day EPSS exploitation probability of 87.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-40655?

Primary impacted vendors include d-link across dir-605, dir-605_b2_firmware. Scope summary: D-Link DIR-605 B2 Firmware Version 2.01MT and earlier (End-of-Life models)

Q3. What temporary mitigations or workarounds exist for CVE-2021-40655 before patching?

[Mitigation] Immediately decommission and replace the legacy EOL device, or disable remote WAN management and restrict network access Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-40655

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (d-link)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-40655 D-Link DIR-605 Router Information Disclosure and Credential Theft Vulnerability (CVE-2021-40655) Analysis & Mitigation Guide (CVSS 7.5) - Patch & Workaround | CVE Pulse