CVE-2023-35749

8.8 HIGH

📋 TL;DR

This vulnerability allows network-adjacent attackers to execute arbitrary code as root on D-Link DAP-2622 routers without authentication. The flaw exists in the DDP service's firmware upgrade filename handling, where improper length validation enables stack-based buffer overflow. Only D-Link DAP-2622 router users are affected.

💻 Affected Systems

Products:
  • D-Link DAP-2622
Versions: Firmware versions prior to 1.11B01
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: DDP service runs by default on port 41234. No authentication required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete router compromise with root-level remote code execution, enabling persistent backdoor installation, network traffic interception, and lateral movement to connected devices.

🟠

Likely Case

Router takeover leading to DNS hijacking, credential theft from network traffic, and botnet recruitment.

🟢

If Mitigated

Limited to denial of service if exploit attempts crash the DDP service, but router remains functional for basic networking.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

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

ZDI published detailed advisory with technical analysis. No public exploit code available but vulnerability is straightforward to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Firmware version 1.11B01

Vendor Advisory: https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10349

Restart Required: Yes

Instructions:

1. Download firmware 1.11B01 from D-Link support site. 2. Log into router web interface. 3. Navigate to Maintenance > Firmware Upgrade. 4. Upload and install the new firmware. 5. Wait for automatic reboot.

🔧 Temporary Workarounds

Block DDP Service Port

linux

Block access to DDP service port 41234 using firewall rules

iptables -A INPUT -p tcp --dport 41234 -j DROP
iptables -A INPUT -p udp --dport 41234 -j DROP

Disable DDP Service

linux

Disable the vulnerable DDP service if not required

killall ddpd
chmod -x /usr/sbin/ddpd

🧯 If You Can't Patch

  • Segment router on isolated network VLAN
  • Implement strict network access controls to limit who can reach the router

🔍 How to Verify

Check if Vulnerable:

Check firmware version in web interface under Status > Device Info. If version is below 1.11B01, device is vulnerable.

Check Version:

curl -s http://router-ip/status.asp | grep Firmware

Verify Fix Applied:

Confirm firmware version shows 1.11B01 or higher after upgrade. Test DDP service response to malformed packets.

📡 Detection & Monitoring

Log Indicators:

  • Multiple connection attempts to port 41234
  • DDP service crash logs
  • Unusual firmware upgrade attempts

Network Indicators:

  • Excessive traffic to router port 41234
  • Malformed DDP packets with long filenames

SIEM Query:

source="router-logs" dest_port=41234 AND (payload_length>100 OR filename_length>50)

🔗 References

📤 Share & Export