CVE-2024-2487

8.8 HIGH

📋 TL;DR

This critical vulnerability in Tenda AC18 routers allows remote attackers to execute arbitrary code via a stack-based buffer overflow in the formSetDeviceName function. Attackers can exploit this by sending specially crafted requests to the /goform/SetOnlineDevName endpoint. All users running the affected firmware version are at risk.

💻 Affected Systems

Products:
  • Tenda AC18
Versions: 15.03.05.05
Operating Systems: Embedded Linux (router firmware)
Default Config Vulnerable: ⚠️ Yes
Notes: All devices running this specific firmware version are vulnerable by default.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete device compromise, persistence, and potential lateral movement to connected networks.

🟠

Likely Case

Remote code execution allowing attackers to install malware, create backdoors, or use the device as part of a botnet.

🟢

If Mitigated

Limited impact if device is behind firewall with restricted WAN access and proper network segmentation.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and public exploits exist.
🏢 Internal Only: MEDIUM - Still exploitable from internal networks but requires initial network access.

🎯 Exploit Status

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

Public exploit code is available, making exploitation straightforward for attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: Yes

Instructions:

No official patch available. Vendor was contacted but did not respond. Consider replacing or isolating affected devices.

🔧 Temporary Workarounds

Network Isolation

all

Place affected routers behind firewalls with strict inbound rules

Access Restriction

linux

Block access to /goform/SetOnlineDevName endpoint

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

🧯 If You Can't Patch

  • Immediately disconnect affected devices from internet-facing networks
  • Replace affected devices with supported alternatives from different vendors

🔍 How to Verify

Check if Vulnerable:

Check router web interface or SSH/Telnet for firmware version 15.03.05.05

Check Version:

Check router admin interface at http://[router-ip]/ or use telnet/ssh if enabled

Verify Fix Applied:

Verify firmware version has been updated to a version later than 15.03.05.05

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /goform/SetOnlineDevName
  • Large devName parameter values in web logs

Network Indicators:

  • HTTP POST requests to /goform/SetOnlineDevName with oversized payloads
  • Unusual outbound connections from router

SIEM Query:

source="router-logs" AND uri_path="/goform/SetOnlineDevName" AND content_length>100

🔗 References

📤 Share & Export