CVE-2024-3006
📋 TL;DR
A critical stack-based buffer overflow vulnerability in Tenda FH1205 routers allows remote attackers to execute arbitrary code by manipulating the 'entrys' parameter in the fromSetRouteStatic 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 if exploit fails or is detected by security controls, with potential for temporary device disruption.
🎯 Exploit Status
Public exploit code is available in GitHub repositories. The vulnerability requires no authentication and has straightforward exploitation.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Unknown
Vendor Advisory: None available
Restart Required: Yes
Instructions:
1. Check Tenda website for firmware updates. 2. If update available, download and install via web interface. 3. Reboot router after update. Note: Vendor has not responded to disclosure, so patches may not be available.
🔧 Temporary Workarounds
Disable Remote Management
allPrevent external access to router management interface
Access router web interface -> Advanced Settings -> Remote Management -> Disable
Network Segmentation
allIsolate router management interface to trusted network segments only
Configure firewall rules to restrict access to router IP on ports 80/443 to trusted IPs only
🧯 If You Can't Patch
- Replace affected routers with different models from vendors with better security track records
- Implement network monitoring and intrusion detection specifically for router compromise indicators
🔍 How to Verify
Check if Vulnerable:
Check router firmware version via web interface: Login -> System Status -> Firmware Version. If version is 2.0.0.7(775), device is vulnerable.
Check Version:
curl -s http://router-ip/goform/getStatus | grep version
Verify Fix Applied:
Verify firmware version has changed from 2.0.0.7(775) to a newer version. Test the vulnerable endpoint with safe payloads to confirm overflow no longer occurs.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to /goform/fromRouteStatic with long 'entrys' parameters
- Router reboot events following web interface access
- Unusual outbound connections from router
Network Indicators:
- Exploit traffic patterns to router management interface
- Unusual port scanning or connection attempts originating from router
SIEM Query:
source="router_logs" AND (url="/goform/fromRouteStatic" AND (param_length>100 OR status_code=500))
🔗 References
- https://github.com/abcdefg-png/IoT-vulnerable/blob/main/Tenda/FH/FH1205/fromRouteStatic.md
- https://vuldb.com/?ctiid.258292
- https://vuldb.com/?id.258292
- https://vuldb.com/?submit.301485
- https://github.com/abcdefg-png/IoT-vulnerable/blob/main/Tenda/FH/FH1205/fromRouteStatic.md
- https://vuldb.com/?ctiid.258292
- https://vuldb.com/?id.258292
- https://vuldb.com/?submit.301485