CVE-2024-42812

9.8 CRITICAL

📋 TL;DR

This critical buffer overflow vulnerability in D-Link DIR-860L routers allows attackers to crash devices or execute arbitrary commands remotely. Attackers exploit the lack of length verification in the SID field of gena.cgi. All users of affected DIR-860L routers with internet exposure are at risk.

💻 Affected Systems

Products:
  • D-Link DIR-860L
Versions: v2.03
Operating Systems: Embedded Linux firmware
Default Config Vulnerable: ⚠️ Yes
Notes: Only DIR-860L hardware revision B1 with firmware v2.03 is confirmed affected

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full device compromise allowing persistent remote code execution, credential theft, and use as attack platform

🟠

Likely Case

Device crash/reboot causing service disruption, followed by remote command execution for network foothold

🟢

If Mitigated

Limited to denial-of-service if exploit fails or device is isolated

🌐 Internet-Facing: HIGH - Routers are typically internet-facing and vulnerable to remote exploitation
🏢 Internal Only: MEDIUM - Still vulnerable to internal attackers but attack surface reduced

🎯 Exploit Status

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

Public proof-of-concept available in GitHub gist; exploitation requires sending crafted HTTP request to gena.cgi

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check vendor advisory for latest patched version

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-860L B1 3. Log into router admin interface 4. Navigate to Tools > Firmware 5. Upload and install new firmware 6. Reboot router

🔧 Temporary Workarounds

Disable UPnP

all

Disable Universal Plug and Play service which uses gena.cgi

Log into router admin > Advanced > Network > UPnP > Disable

Network segmentation

all

Isolate router management interface from untrusted networks

Configure firewall rules to block external access to router admin interface

🧯 If You Can't Patch

  • Replace affected router with supported model
  • Place router behind dedicated firewall with strict inbound filtering

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin interface under Status > Device Info

Check Version:

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

Verify Fix Applied:

Verify firmware version is updated beyond v2.03 and test with known exploit payload

📡 Detection & Monitoring

Log Indicators:

  • Multiple failed gena.cgi requests
  • Unusual POST requests to gena.cgi with long SID parameters
  • Router crash/reboot logs

Network Indicators:

  • HTTP POST requests to /gena.cgi with oversized SID field
  • Unusual outbound connections from router after exploitation

SIEM Query:

source="router_logs" AND (uri="/gena.cgi" AND content_length>1000) OR (event="device_reboot" AND source_ip="router_ip")

🔗 References

📤 Share & Export