CVE-2024-57703

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary code on Tenda AC8v4 routers by exploiting a stack overflow in the setSchedWifi function. Attackers can trigger this by sending specially crafted requests to the /goform/openSchedWifi endpoint. All users running the vulnerable firmware version are affected.

💻 Affected Systems

Products:
  • Tenda AC8v4
Versions: V16.03.34.06
Operating Systems: Embedded Linux firmware
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerable endpoint is accessible via web interface, making all default configurations vulnerable.

📦 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

Denial of service if exploit fails or is detected by network monitoring, with potential for temporary device unavailability.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

The GitHub reference contains technical details that could be used to develop exploits. Stack overflow vulnerabilities in embedded devices are commonly weaponized.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: Yes

Instructions:

1. Check Tenda website for firmware updates. 2. Download latest firmware for AC8v4. 3. Log into router admin interface. 4. Navigate to System Tools > Firmware Upgrade. 5. Upload and install new firmware. 6. Reboot router.

🔧 Temporary Workarounds

Disable remote administration

all

Prevents external attackers from accessing the vulnerable endpoint

Block web interface access

linux

Use firewall rules to restrict access to router admin interface

iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -j DROP

🧯 If You Can't Patch

  • Isolate affected routers in separate network segments
  • Implement strict network monitoring for unusual traffic to/from router

🔍 How to Verify

Check if Vulnerable:

Check router firmware version in admin interface under System Status or System Tools

Check Version:

curl -s http://router-ip/goform/getStatus | grep version

Verify Fix Applied:

Verify firmware version is newer than V16.03.34.06 and test if /goform/openSchedWifi endpoint still accepts malformed input

📡 Detection & Monitoring

Log Indicators:

  • Multiple POST requests to /goform/openSchedWifi with long schedEndTime parameters
  • Router crash/reboot logs
  • Unusual process execution in router logs

Network Indicators:

  • HTTP POST requests with abnormally long parameters to router IP
  • Unusual outbound connections from router

SIEM Query:

source="router.log" AND (url="/goform/openSchedWifi" AND parameter_length>1000)

🔗 References

📤 Share & Export