CVE-2024-41622

9.8 CRITICAL

📋 TL;DR

This vulnerability allows unauthenticated remote attackers to execute arbitrary commands on D-Link DIR-846W routers via the tomography_ping_address parameter in the HNAP1 interface. Attackers can gain complete control of affected devices. All users of DIR-846W A1 routers with firmware version 100A43 are affected.

💻 Affected Systems

Products:
  • D-Link DIR-846W A1
Versions: Firmware version 100A43
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Only A1 hardware revision affected. HNAP1 interface enabled by default.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device takeover allowing attackers to install persistent malware, pivot to internal networks, intercept all network traffic, or brick the device.

🟠

Likely Case

Attackers install cryptocurrency miners, create botnet nodes, or intercept credentials from network traffic.

🟢

If Mitigated

Limited impact if device is behind firewall with HNAP1 interface blocked from internet access.

🌐 Internet-Facing: HIGH - HNAP1 interface is typically exposed to internet on consumer routers.
🏢 Internal Only: MEDIUM - Attackers on local network can exploit without authentication.

🎯 Exploit Status

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

Public PoC available on GitHub. Simple HTTP POST request with command injection payload.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check vendor for latest firmware

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

Restart Required: Yes

Instructions:

1. Visit D-Link support site. 2. Download latest firmware for DIR-846W A1. 3. Log into router admin interface. 4. Navigate to Firmware Update section. 5. Upload and apply new firmware. 6. Reboot router.

🔧 Temporary Workarounds

Block HNAP1 Interface

linux

Block access to HNAP1 interface via firewall rules

iptables -A INPUT -p tcp --dport 80 -m string --string "POST /HNAP1/" --algo bm -j DROP

Disable Remote Management

all

Turn off remote administration in router settings

🧯 If You Can't Patch

  • Isolate router on separate VLAN with strict firewall rules
  • Replace with patched or different router model

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router admin interface under Status > Firmware

Check Version:

curl -s http://router-ip/HNAP1/ | grep -i firmware

Verify Fix Applied:

Verify firmware version is newer than 100A43 and test with known PoC

📡 Detection & Monitoring

Log Indicators:

  • HTTP POST requests to /HNAP1/ with unusual parameters
  • Command execution patterns in system logs

Network Indicators:

  • HTTP traffic to router port 80 with tomography_ping_address parameter containing shell metacharacters

SIEM Query:

source="router_logs" AND (url="/HNAP1/" AND method="POST" AND (param="tomography_ping_address" AND value MATCH "[;&|`]"))

🔗 References

📤 Share & Export