TOTOLINK A3300R Stack-Based Buffer Overflow Vulnerability in setScheduleCfg Function

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 issue arises in the POST parameter handler within the file /cgi-bin/cstecgi.cgi. The vulnerability is triggered by the recHour parameter in the setScheduleCfg function, which is written to the configuration without proper length or content validation. This lack of input validation allows for an excessively long string to be stored, leading to a stack overflow condition. The vulnerability can be exploited remotely, and a proof-of-concept exploit is available.

Impact

Exploitation of this vulnerability causes a stack-based buffer overflow, which can lead to arbitrary code execution or a denial-of-service condition by crashing the device.

Reproduction

The vulnerability can be reproduced by sending a POST request to the /cgi-bin/cstecgi.cgi endpoint with a crafted recHour parameter that exceeds the buffer length. This can be done using a script that automates the process, such as one written in Python that uses the requests library to send the payload.

Added: Oct 27, 2025, 10:22 AM
Updated: Oct 27, 2025, 1:54 PM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.8
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.