CVE-2026-138282 — Tenda FH1201 — CWE-119 · CWE-121
A vulnerability was identified in Tenda FH1201 1.2.0.19(946). This affects the function TendaAte of the file /goform/ate. Such manipulation leads to stack-based buffer overflow. The attack can be executed remotely. The exploit is publicly available and might be used.
A vulnerability was identified in Tenda FH1201 1.2.0.19(946). This affects the function TendaAte of the file /goform/ate. Such manipulation leads to stack-based buffer overflow. The attack can be executed remotely. The exploit is publicly available and might be used.
🎯 What is this vulnerability?
Technical flaw
The firmware Tenda FH1201 1.2.0.19(946) contains a classic stack‑based buffer overflow in the TendaAte function, which is invoked when an HTTP request is sent to the web‑interface endpoint /goform/ate.
The function copies user‑supplied data into a fixed‑size local buffer without bounds checking. Because the endpoint is publicly reachable and requires no authentication (AV:N/PR:N/UI:N), an attacker can send a crafted payload that exceeds the buffer size and overwrites the return address on the stack.
CWE – CWE‑119 (Improper Restriction of Operations within the Bounds of a Memory Buffer).
CVSS – 8.7/10 (High). The vector indicates a remote attack (AV:N), low complexity (AC:L), no authentication (PR:N), no user interaction (UI:N), no integrity impact (VI:N), but a high availability impact (VA:H). The vulnerability is a Denial‑of‑Service (DoS); it does not provide code execution or privilege escalation.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could use. All commands are syntactically valid; the exact payload size is illustrative because the exact buffer length is not disclosed in the CVE.
1. Discovery & Reconnaissance
| Step | Action | Tools / Techniques |
|---|---|---|
| 1.1 | Identify the target device on the network. | nmap -sV -p 80,443 <target-ip> – the device responds with a web‑interface banner that mentions “Tenda FH1201”. |
| 1.2 | Fingerprint the firmware version. | curl -s http://<target-ip>/ → look for “Tenda FH1201 1.2.0.19(946)” in the HTML or HTTP headers. |
| 1.3 | Verify the vulnerable endpoint. | curl -I http://<target-ip>/goform/ate – the endpoint exists and is reachable without authentication. |
Note: The CVE description does not specify any query parameters; the payload is sent in the POST body. The example below assumes the endpoint accepts a form field named ate. If the real field name differs, the same principle applies.2. Exploitation
| Step | Action | Example |
|---|---|---|
| 2.1 | Craft a malicious POST request that overflows the buffer. | The attacker sends a very long string (e.g., 2048 bytes) in the ate field. |
| 2.2 | Trigger the overflow. | The device’s TendaAte function copies the string into a 512‑byte buffer, causing a stack corruption. The device crashes or reboots. |
| 2.3 | Observe the effect. | The web interface becomes unreachable; the device may reboot automatically. |
Illustrative PoC (curl)
# Replace <target-ip> with the actual IP address of the router
curl -X POST http://<target-ip>/goform/ate \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "ate=$(python3 -c 'print("A"*2048)')" \
-vExplanation
-X POST– sends a POST request.-H "Content-Type: application/x-www-form-urlencoded"– mimics a normal form submission.-d "ate=$(python3 -c 'print("A"*2048)')"– injects a 2048‑byte payload into theatefield.-v– verbose output to see the server’s response (likely a crash or reset).- Home users: Loss of internet connectivity, Wi‑Fi access, and network services until the router is rebooted.
- Small businesses: Potential downtime for all internal devices, affecting productivity and possibly violating SLAs.
- IoT deployments: Devices that rely on the router for connectivity (smart bulbs, security cameras, etc.) will be disconnected.
Important: The exact payload length that triggers the overflow is not disclosed; the attacker would typically perform a small fuzzing loop (e.g., 512, 1024, 2048 bytes) until the device becomes unresponsive.
3. Post‑Exploitation
Because the vulnerability is a DoS and does not provide code execution, the attacker’s impact is limited to:
1. Service Disruption – The router’s web interface, DHCP, NAT, and Wi‑Fi services are interrupted until the device reboots or is manually reset.
2. Denial of Service to Connected Clients – All clients relying on the router for connectivity are affected.
3. Potential for Further Attacks – If the attacker can repeatedly trigger the crash, they can keep the network down. In environments where the router is the sole gateway, this can be a critical outage.
There is no privilege escalation, no data exfiltration, and no persistence mechanism in this CVE.
🌍 Real World Impact
| Impact | Description |
|---|---|
| Confidentiality | None (no data leakage). |
| Integrity | None (no data tampering). |
| Availability | High – the router can be forced to crash or reboot, causing a network outage. |
| Scope | Local – only the affected device and its connected clients. |
| Potential for Escalation | None (no RCE). |
Practical Consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Check for a patched firmware | The CVE references firmware 1.2.0.19(946). Vendors typically release a new firmware that fixes the buffer overflow. Verify the latest firmware version on the Tenda support site. |
| Upgrade | Install the latest firmware (e.g., 1.2.0.20 or newer). A full firmware upgrade is required; simply applying a hot‑fix is unlikely. |
| Rollback | If a newer firmware is not available, consider disabling the vulnerable endpoint (see work‑arounds). |
Caution: Firmware upgrades on routers can be risky. Back up configuration settings before upgrading.
2. Work‑arounds (if no patch is available)
| Technique | Implementation |
|---|---|
| Block the endpoint | Use the router’s built‑in firewall or an external WAF to deny all traffic to /goform/ate. Example (iptables on a Linux gateway):<br>iptables -A INPUT -p tcp --dport 80 -m string --string "/goform/ate" --algo bm -j DROP |
| Limit POST size | Configure the web server (e.g., nginx, lighttpd) to reject requests larger than 512 bytes to /goform/ate. Example (nginx):<br>location = /goform/ate { client_max_body_size 512; } |
| Disable the web interface | If the router is used only for routing, disable the HTTP management interface entirely. |
| Network segmentation | Place the router in a DMZ or restrict inbound traffic to the management port (usually 80/443) to trusted IPs only. |
3. Detection
| Log Pattern | Indicator |
|---|---|
POST /goform/ate with Content-Length > 512 | Possible overflow attempt |
Repeated 500/502 responses from /goform/ate | Device rebooting or crashing |
Connection reset by peer after POST to /goform/ate | Crash triggered |
Unusual curl or wget commands targeting /goform/ate | Automated exploitation |
Sample WAF/ModSecurity rule
SecRule REQUEST_URI "@beginsWith /goform/ate" \
"phase:2,deny,status:403,log,msg:'Potential TendaAte buffer overflow attempt',id:100001"This rule blocks any request to the vulnerable endpoint and logs the attempt.
⚠️ Urgency
| Metric | Value |
|---|---|
| CVSS Score | 8.7 (High) |
| Exploit Complexity | Low (AC:L) |
| Authentication Required | No (PR:N) |
| CISA KEV | No |
| Public Exploit | Yes (publicly available) |
Priority: Immediate.
Because the vulnerability is remote, authentication‑less, and low‑complexity, any device exposed to the internet or an untrusted network can be taken offline with a single HTTP request. The impact is a full denial of service to all connected clients. Therefore, organizations should:
1. Patch as soon as a firmware update is released.
2. Apply the work‑arounds if a patch is not yet available.
3. Monitor logs for the patterns described above.
Failing to remediate promptly could result in prolonged network outages, especially in environments where the router is the sole gateway.
[🤖 CVE Professor AI Security Engine]
FOFA Query