CVE-2024-33112

7.5 HIGH

📋 TL;DR

This CVE describes a command injection vulnerability in D-Link DIR-845L routers that allows attackers to execute arbitrary commands on the device. The vulnerability exists in the hnap_main() function and affects version 1.01KRb03 and earlier. Attackers can exploit this to gain unauthorized access and control over affected routers.

💻 Affected Systems

Products:
  • D-Link DIR-845L
Versions: v1.01KRb03 and earlier
Operating Systems: Router firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the Korean firmware version specifically; other regional variants may have different code.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of the router allowing attackers to intercept all network traffic, install persistent backdoors, pivot to internal networks, and use the device for botnet activities.

🟠

Likely Case

Router takeover enabling traffic monitoring, DNS hijacking, credential theft, and use as a network foothold for further attacks.

🟢

If Mitigated

Limited impact if network segmentation isolates the router and external access is restricted, though local network attacks may still succeed.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Public proof-of-concept code exists in GitHub repositories, making exploitation straightforward for attackers with basic skills.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: Yes

Instructions:

1. Check D-Link support site for firmware updates. 2. If update available, download and install via router web interface. 3. Reboot router after installation.

🔧 Temporary Workarounds

Disable HNAP Service

all

Disable the Home Network Administration Protocol service if not needed

Network Segmentation

all

Isolate router management interface from untrusted networks

🧯 If You Can't Patch

  • Replace affected router with supported model
  • Implement strict firewall rules blocking external access to router management interface

🔍 How to Verify

Check if Vulnerable:

Check router firmware version via web interface at 192.168.0.1 or 192.168.1.1, login and navigate to Tools > System Info

Check Version:

curl -s http://router-ip/HNAP1/ | grep -i version or check web interface

Verify Fix Applied:

Verify firmware version is newer than v1.01KRb03 after update

📡 Detection & Monitoring

Log Indicators:

  • Unusual HNAP requests
  • Suspicious command execution in system logs
  • Failed authentication attempts to router interface

Network Indicators:

  • Unexpected outbound connections from router
  • Suspicious traffic patterns to/from router management port

SIEM Query:

source="router_logs" AND ("HNAP" OR "command injection" OR "unauthorized access")

🔗 References

📤 Share & Export