CVE-2022-25457

9.8 CRITICAL

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary code on Tenda AC6 routers via a stack overflow in the SetSysTimeCfg function. Attackers can exploit this by sending specially crafted requests to the ntpserver parameter. Users running vulnerable firmware versions are affected.

💻 Affected Systems

Products:
  • Tenda AC6
Versions: v15.03.05.09_multi
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the web management interface. Other Tenda models may share similar code but not confirmed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Remote code execution allowing attackers to modify router settings, intercept traffic, 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 - Routers are typically internet-facing devices with web interfaces accessible from WAN.
🏢 Internal Only: MEDIUM - Could still be exploited by compromised internal devices or malicious insiders.

🎯 Exploit Status

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

Public exploit code available in GitHub repositories. Exploitation requires network access to web interface.

🛠️ 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. 3. Access router web interface. 4. Navigate to System Tools > Firmware Upgrade. 5. Upload new firmware file. 6. Wait for reboot.

🔧 Temporary Workarounds

Disable Remote Management

all

Prevent external access to web interface

Access router settings > System Tools > Remote Management > Disable

Network Segmentation

all

Isolate router management interface

🧯 If You Can't Patch

  • Replace affected device with supported model
  • Implement strict firewall rules blocking all WAN access to router management interface

🔍 How to Verify

Check if Vulnerable:

Check firmware version in router web interface: System Status > Firmware Version

Check Version:

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

Verify Fix Applied:

Verify firmware version is newer than v15.03.05.09_multi

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /goform/SetSysTimeCfg
  • Large ntpserver parameter values in web logs

Network Indicators:

  • Exploit traffic patterns to router management port
  • Unexpected outbound connections from router

SIEM Query:

source="router_logs" AND uri="/goform/SetSysTimeCfg" AND parameter="ntpserver" AND length(value)>100

🔗 References

📤 Share & Export