Tenda F1202 Stack-Based Buffer Overflow Vulnerability (CVE-2026-9431)
A remote stack-based buffer overflow vulnerability (CVE-2026-9431) exists in the fromPptpUserAdd function of the /goform/PptpUserAdd file in Tenda F1202 firmware version 1.2.0.20(408), allowing unauthenticated attackers to potentially execute arbitrary code.
A stack-based buffer overflow vulnerability, CVE-2026-9431, has been identified in Tenda F1202 router firmware version 1.2.0.20(408). The vulnerability resides in the fromPptpUserAdd function within the /goform/PptpUserAdd file. By manipulating the opttype argument, an attacker can trigger a buffer overflow, potentially leading to arbitrary code execution on the device. This vulnerability can be exploited remotely without authentication. Publicly available exploit code exists, increasing the risk of exploitation in the wild. This issue poses a significant threat to network security, potentially allowing attackers to gain control of vulnerable devices.
Attack Chain
- Attacker identifies a Tenda F1202 router running firmware version 1.2.0.20(408).
- Attacker sends a crafted HTTP POST request to the
/goform/PptpUserAddendpoint. - The POST request includes the
opttypeargument with a value exceeding the buffer size allocated in thefromPptpUserAddfunction. - The
fromPptpUserAddfunction processes the maliciousopttypeargument without proper bounds checking. - The oversized
opttypevalue overflows the stack buffer, overwriting adjacent memory locations. - The attacker crafts the overflow to overwrite the return address on the stack, redirecting execution flow.
- The overwritten return address points to attacker-controlled code, which is injected into the overflow.
- The attacker-controlled code executes with the privileges of the
fromPptpUserAddfunction, allowing the attacker to execute arbitrary commands on the router.
Impact
Successful exploitation of CVE-2026-9431 allows a remote, unauthenticated attacker to execute arbitrary code on the Tenda F1202 router. This can lead to complete device compromise, including modification of router settings, interception of network traffic, and use of the router as a botnet node. Given the publicly available exploit code, widespread exploitation is possible, potentially impacting numerous home and small business networks using the vulnerable Tenda F1202 model.
Recommendation
- Monitor web server logs for suspicious POST requests to
/goform/PptpUserAddwith unusually longopttypevalues to detect potential exploitation attempts. - Deploy the Sigma rule
Detect Tenda F1202 Buffer Overflow Attemptto your SIEM to identify suspicious requests. - Consider deploying a web application firewall (WAF) rule to block requests with excessively long
opttypevalues sent to/goform/PptpUserAdd.
Detection coverage 2
Detect Tenda F1202 Buffer Overflow Attempt
highDetects CVE-2026-9431 exploitation — attempts to exploit the stack-based buffer overflow in Tenda F1202 via a long opttype parameter in a POST request to /goform/PptpUserAdd.
Detect Tenda F1202 Goform Directory Access
lowDetects access to the /goform directory on Tenda F1202 devices, which is often targeted by exploit attempts.
Detection queries are available on the platform. Get full rules →