CVE-2023-35737

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 configuration backup feature where improper length validation of usernames leads to stack-based buffer overflow. Only D-Link DAP-2622 router users are affected.

💻 Affected Systems

Products:
  • D-Link DAP-2622
Versions: All versions prior to firmware 1.11B01
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: DDP service runs on port 41234 by default and is enabled in default configurations.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of router with root-level remote code execution, allowing attacker to intercept/modify all network traffic, install persistent malware, or pivot to internal network devices.

🟠

Likely Case

Router compromise leading to network traffic interception, DNS hijacking, credential theft, and potential lateral movement to connected devices.

🟢

If Mitigated

No impact if router is patched or DDP service is disabled/blocked from network access.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

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

ZDI published technical details and proof-of-concept. Exploitation requires network adjacency but no authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Firmware 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 Update. 4. Upload and apply the new firmware. 5. Wait for automatic reboot.

🔧 Temporary Workarounds

Block DDP Service Access

linux

Block external and internal 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 DDP service if not required for network functionality.

killall ddpd
chmod -x /usr/sbin/ddpd

🧯 If You Can't Patch

  • Isolate affected routers in separate VLAN with strict access controls
  • Implement network segmentation to limit lateral movement potential

🔍 How to Verify

Check if Vulnerable:

Check firmware version via web interface or SSH: cat /etc/version | grep -q '1.11B01' || echo 'VULNERABLE'

Check Version:

cat /etc/version

Verify Fix Applied:

Verify firmware version is 1.11B01 or later and test DDP service response to malformed packets.

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed DDP authentication attempts
  • Unusual process execution from DDP service
  • Buffer overflow patterns in system logs

Network Indicators:

  • Unusual traffic to port 41234
  • Malformed DDP packets exceeding normal username length
  • Shellcode patterns in network traffic

SIEM Query:

source="router.log" AND ("ddp" OR "41234") AND ("overflow" OR "segfault" OR "buffer")

🔗 References

📤 Share & Export