TOTOLink LR350 Stack Overflow Vulnerability Leading to Denial-of-Service

Vulnerability

A stack overflow vulnerability has been identified in the TOTOLink LR350 router, specifically in version 9.3.5u.6369_B20220309. The issue arises in the sub_422880 function, where the ssid parameter is processed without proper length validation. When the addEffect parameter is set to '0', the ssid is passed to the urldecode function, which decodes the input and writes it to a fixed-size buffer. This lack of input length restriction allows for excessive data to overflow the buffer, potentially overwriting adjacent stack data or the return address, and causing a denial-of-service condition by crashing the router and disrupting its service.

Impact

Exploitation of this vulnerability leads to a persistent denial-of-service condition, causing the router to crash and fail to provide services correctly.

Reproduction

The vulnerability can be reproduced by sending a crafted POST request to the '/cgi-bin/cstecgi.cgi' endpoint. The request must include a very long ssid parameter, exceeding the buffer size, and set the addEffect parameter to '0'. This can be done using a tool like QEMU to emulate the router's firmware or by testing on a real device.

Added: Oct 31, 2025, 5:20 PM
Updated: Oct 31, 2025, 8:20 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
2.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.