CVE-2023-41189

8.8 HIGH

📋 TL;DR

This vulnerability allows network-adjacent attackers to execute arbitrary commands as root on D-Link DAP-1325 routers without authentication. Attackers can inject malicious commands through the HNAP1 SOAP endpoint to gain complete control of affected devices. All users of vulnerable D-Link DAP-1325 routers are affected.

💻 Affected Systems

Products:
  • D-Link DAP-1325
Versions: All versions prior to firmware version 1.11B02
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all default configurations. HNAP1 service is enabled by default and accessible from LAN.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of router with root access, allowing attackers to intercept all network traffic, install persistent malware, pivot to other devices, or use router as botnet node.

🟠

Likely Case

Router takeover leading to credential theft, DNS hijacking, man-in-the-middle attacks, and network disruption.

🟢

If Mitigated

Limited impact if router is isolated from sensitive networks and regularly monitored for suspicious activity.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

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

Exploit requires network adjacency but no authentication. Public proof-of-concept code exists in ZDI advisory.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Firmware version 1.11B02

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

Restart Required: Yes

Instructions:

1. Download firmware 1.11B02 from D-Link support site. 2. Log into router admin interface. 3. Navigate to Maintenance > Firmware Update. 4. Upload and install the new firmware. 5. Reboot router after installation.

🔧 Temporary Workarounds

Disable HNAP1 Service

all

Disable the vulnerable HNAP1 SOAP endpoint if not required

Not available via command line - must use web interface if supported

Network Segmentation

all

Isolate DAP-1325 from sensitive networks using VLANs or separate physical network

🧯 If You Can't Patch

  • Replace affected DAP-1325 routers with patched or alternative models
  • Implement strict network access controls to limit access to router management interface

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router web interface under Status > Device Info. If version is earlier than 1.11B02, device is vulnerable.

Check Version:

Not available via command line - must use web interface

Verify Fix Applied:

Confirm firmware version shows 1.11B02 or later in router web interface.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /HNAP1/
  • Command execution attempts in system logs
  • Multiple failed authentication attempts followed by successful HNAP1 requests

Network Indicators:

  • Unusual outbound connections from router
  • DNS queries to suspicious domains from router
  • Traffic patterns indicating command and control communication

SIEM Query:

source="router_logs" AND (uri_path="/HNAP1/" AND method="POST" AND (user_agent="*curl*" OR user_agent="*wget*" OR user_agent="*python*"))

🔗 References

📤 Share & Export