TOTOLINK A3300R Stack-Based Buffer Overflow Vulnerability in POST Parameter Handler

Vulnerability

A stack-based buffer overflow vulnerability has been identified in the TOTOLINK A3300R router, specifically in the firmware version 17.0.0cu.557_B20221024. The vulnerability arises in the 'setOpModeCfg' function within the '/cgi-bin/cstecgi.cg' file, where the 'opmode' POST parameter is processed. The function writes the parameter value to 'opmode_custom' without proper length or content validation, allowing for excessive data to overflow the stack.

Impact

Exploitation of this vulnerability leads to a stack-based buffer overflow, which can commonly result in arbitrary code execution or causing the device to crash.

Reproduction

To reproduce this vulnerability, send a POST request to the '/cgi-bin/cstecgi.cg' endpoint with the 'opmode' parameter. The value of this parameter should be a payload designed to overflow the buffer, such as a string of repeated characters. The response can be checked to confirm the successful exploitation of the vulnerability.

Added: Oct 27, 2025, 10:23 AM
Updated: Oct 27, 2025, 1:56 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.9
threat
6.4
urgency
2.9
incentive
9.2

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