CVE-2023-24352

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary code on D-Link N300 Wi-Fi Router DIR-605L devices via a stack overflow in the webpage parameter at /goform/formWPS. Attackers can potentially take full control of affected routers. Only users of the specific D-Link router model with vulnerable firmware are affected.

💻 Affected Systems

Products:
  • D-Link N300 Wi-Fi Router DIR-605L
Versions: v2.13B01
Operating Systems: Embedded router firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the specific hardware model with vulnerable firmware version. The vulnerability is in the web management interface.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of the router allowing attackers to intercept all network traffic, modify router settings, install persistent malware, and pivot to internal network devices.

🟠

Likely Case

Router takeover leading to DNS hijacking, credential theft from unencrypted traffic, and denial of service for connected devices.

🟢

If Mitigated

Limited impact if router is behind firewall with restricted WAN access, though internal attacks remain possible.

🌐 Internet-Facing: HIGH
🏢 Internal Only: HIGH

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public proof-of-concept code exists in GitHub repositories. The vulnerability requires no authentication and has a simple exploitation path.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check D-Link security bulletin for latest patched version

Vendor Advisory: https://www.dlink.com/en/security-bulletin/

Restart Required: Yes

Instructions:

1. Log into router web interface. 2. Navigate to firmware update section. 3. Download latest firmware from D-Link support site. 4. Upload and apply firmware update. 5. Reboot router after update completes.

🔧 Temporary Workarounds

Disable WPS feature

all

Disable Wi-Fi Protected Setup (WPS) functionality which may reduce attack surface

Restrict web interface access

all

Configure firewall rules to restrict access to router web management interface

🧯 If You Can't Patch

  • Replace affected router with a supported model
  • Isolate router in separate network segment with strict firewall rules

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in web interface under System > Firmware or similar section

Check Version:

No CLI command - check via web interface at http://router-ip/ or via router admin panel

Verify Fix Applied:

Verify firmware version matches or exceeds patched version from D-Link advisory

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /goform/formWPS with long webpage parameter
  • Multiple failed login attempts or configuration changes

Network Indicators:

  • Unusual outbound connections from router
  • DNS changes or unexpected proxy configurations

SIEM Query:

source_ip="router_ip" AND (url_path="/goform/formWPS" OR method="POST" AND uri CONTAINS "formWPS")

🔗 References

📤 Share & Export