CVE-2024-3012
📋 TL;DR
A critical stack-based buffer overflow vulnerability in Tenda FH1205 routers allows remote attackers to execute arbitrary code by manipulating the 'mac' parameter in the GetParentControlInfo function. This affects Tenda FH1205 routers running firmware version 2.0.0.7(775). Attackers can exploit this without authentication to potentially take full control of affected devices.
💻 Affected Systems
- Tenda FH1205
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete device compromise, creation of persistent backdoors, lateral movement to internal networks, and botnet recruitment.
Likely Case
Remote code execution allowing attackers to modify router settings, intercept network traffic, or use the device as a pivot point for further attacks.
If Mitigated
Denial of service or limited information disclosure if exploit fails or is partially successful.
🎯 Exploit Status
Public exploit code is available on GitHub. The vulnerability requires no authentication and has a straightforward exploitation path.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Unknown
Vendor Advisory: None available - vendor did not respond to disclosure
Restart Required: Yes
Instructions:
No official patch available. Check Tenda website for firmware updates. If update exists: 1. Download firmware from official Tenda site. 2. Log into router admin interface. 3. Navigate to firmware update section. 4. Upload and apply new firmware. 5. Reboot router.
🔧 Temporary Workarounds
Disable remote management
allPrevent external access to router administration interface
Block vulnerable endpoint
linuxUse firewall rules to block access to /goform/GetParentControlInfo
iptables -A INPUT -p tcp --dport 80 -m string --string "/goform/GetParentControlInfo" --algo bm -j DROP
🧯 If You Can't Patch
- Isolate affected routers in separate network segments with strict firewall rules
- Implement network monitoring and intrusion detection for exploit attempts
🔍 How to Verify
Check if Vulnerable:
Check router firmware version in admin interface. If version is 2.0.0.7(775), device is vulnerable.
Check Version:
Check router web interface at http://router_ip or use nmap scan to identify device model and firmware
Verify Fix Applied:
Verify firmware version has changed from 2.0.0.7(775) to a newer version.
📡 Detection & Monitoring
Log Indicators:
- HTTP requests to /goform/GetParentControlInfo with long mac parameters
- Unusual process creation or memory errors in router logs
Network Indicators:
- HTTP POST requests to /goform/GetParentControlInfo with oversized payloads
- Unusual outbound connections from router
SIEM Query:
http.url:"/goform/GetParentControlInfo" AND (http.request_body_length > 100 OR http.request_body CONTAINS "mac=")
🔗 References
- https://github.com/abcdefg-png/IoT-vulnerable/blob/main/Tenda/FH/FH1205/GetParentControlInfo.md
- https://vuldb.com/?ctiid.258298
- https://vuldb.com/?id.258298
- https://vuldb.com/?submit.301491
- https://github.com/abcdefg-png/IoT-vulnerable/blob/main/Tenda/FH/FH1205/GetParentControlInfo.md
- https://vuldb.com/?ctiid.258298
- https://vuldb.com/?id.258298
- https://vuldb.com/?submit.301491