CVE-2023-24345

8.8 HIGH

📋 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 curTime parameter. Attackers can exploit this to gain full control of affected routers. Only DIR-605L v2.13B01 users are affected.

💻 Affected Systems

Products:
  • D-Link N300 Wi-Fi Router DIR-605L
Versions: v2.13B01
Operating Systems: Embedded firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects the specific firmware version; earlier/later versions may not be vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete router compromise leading to persistent backdoor installation, network traffic interception, credential theft, and lateral movement to connected devices.

🟠

Likely Case

Router takeover enabling DNS hijacking, credential harvesting from network traffic, and botnet recruitment.

🟢

If Mitigated

Limited impact if routers are behind firewalls with strict inbound filtering and regular firmware updates.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploit code is publicly available in GitHub repositories, making exploitation straightforward for attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check D-Link advisory for latest patched version

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

Restart Required: Yes

Instructions:

1. Log into router admin 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.

🔧 Temporary Workarounds

Disable WAN management

all

Prevents external exploitation by disabling remote administration via WAN interface

Network segmentation

all

Isolate router management interface to trusted internal network only

🧯 If You Can't Patch

  • Replace affected router with supported model
  • Implement strict firewall rules blocking all inbound traffic to router management interface

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin interface; if version is v2.13B01, device is vulnerable.

Check Version:

Check via router web interface at 192.168.0.1 or 192.168.1.1 under System Status or Firmware section

Verify Fix Applied:

Verify firmware version has been updated to a version later than v2.13B01.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /goform/formSetWanDhcpplus with long curTime parameters
  • Router reboot events
  • Configuration changes not initiated by admin

Network Indicators:

  • Unexpected outbound connections from router
  • DNS queries to suspicious domains
  • Port scanning originating from router

SIEM Query:

source="router_logs" AND (uri="/goform/formSetWanDhcpplus" AND param_length>100) OR event="firmware_change"

🔗 References

📤 Share & Export