CVE-2021-30072

9.8 CRITICAL

📋 TL;DR

This vulnerability allows unauthenticated attackers to execute arbitrary code on D-Link DIR-878 routers via a stack-based buffer overflow in the prog.cgi component. Attackers can potentially take full control of affected devices remotely. All users of DIR-878 routers with firmware version 1.30B08 are affected.

💻 Affected Systems

Products:
  • D-Link DIR-878
Versions: Firmware version 1.30B08
Operating Systems: Embedded Linux (router firmware)
Default Config Vulnerable: ⚠️ Yes
Notes: All devices running this firmware version are vulnerable by default. No special configuration required.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device compromise leading to persistent backdoor installation, network traffic interception, lateral movement to other devices, and botnet recruitment.

🟠

Likely Case

Remote code execution allowing attackers to modify router settings, intercept traffic, or use the device as a pivot point for further attacks.

🟢

If Mitigated

Limited impact if device is behind firewall with restricted WAN access, though internal network exposure remains.

🌐 Internet-Facing: HIGH - Routers are typically internet-facing by design, making them directly accessible to attackers.
🏢 Internal Only: MEDIUM - Internal attackers or compromised internal systems could exploit this vulnerability.

🎯 Exploit Status

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

The vulnerability requires no authentication and has a public proof-of-concept available, making exploitation straightforward for attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Firmware version 1.30B10 or later

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

Restart Required: Yes

Instructions:

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

🔧 Temporary Workarounds

Disable remote management

all

Prevents external attackers from accessing the vulnerable interface

Network segmentation

all

Isolate router management interface from untrusted networks

🧯 If You Can't Patch

  • Replace affected device with patched or different model
  • Implement strict network access controls to limit exposure to the router's management interface

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router web interface under System > Firmware Update

Check Version:

Check router web interface or use nmap to identify firmware version

Verify Fix Applied:

Confirm firmware version is 1.30B10 or later in System > Firmware Update page

📡 Detection & Monitoring

Log Indicators:

  • Unusual HTTP requests to prog.cgi
  • Multiple failed exploit attempts
  • Unexpected router reboots

Network Indicators:

  • Unusual traffic patterns to router management interface
  • Exploit payloads in HTTP requests

SIEM Query:

source_ip="router_ip" AND (uri="*prog.cgi*" OR http_user_agent="*exploit*")

🔗 References

📤 Share & Export