Tenda W12 and i24 Stack-Based Buffer Overflow Vulnerability in Uplink Check Function

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in the Tenda W12 and i24 routers, specifically in the firmware versions 3.0.0.4(2887) and 3.0.0.5(3644). The vulnerability arises in the 'cgiSysUplinkCheckSet' function within the '/bin/httpd' file, where the 'hostIp1' and 'hostIp2' parameters are not properly validated, allowing for remote exploitation. This overflow can overwrite the return address register, potentially leading to arbitrary code execution.

Impact

Exploitation of this vulnerability allows for a stack-based buffer overflow, with the potential to overwrite the return address and execute arbitrary code.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/goform/modules' endpoint with a JSON payload that includes the 'sysUplinkCheckSet' parameter. The 'hostIp1' parameter should be filled with a string that exceeds the buffer limit, while the 'hostIp2' parameter should be set to a value that will overwrite the return address register.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.6
remediation
0.0
relevance
0.0
threat
6.5
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.