Totolink A3300R Command Injection Vulnerability

Vulnerability

A command injection vulnerability has been identified in the Totolink A3300R router, specifically in version 17.0.0cu.557_b20221024. The issue arises in the web service 'shttpd', within the 'setSyslogCfg' function of the '/cgi-bin/cstecgi.cgi' file. This vulnerability allows remote, unauthenticated attackers to execute arbitrary operating system commands on the device by sending a crafted HTTP request. The root cause is the improper handling of user input, which enables the injection of malicious commands that are executed via the 'execv()' system call.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the affected device, potentially leading to a complete compromise of the router.

Reproduction

To reproduce this vulnerability, send a POST request to '/cgi-bin/cstecgi.cgi' with the 'rtLogServer' parameter set to a command, such as 'wget', targeting a server under the attacker's control. The router will execute the command, demonstrating the command injection flaw.

Added: Mar 31, 2026, 2:19 AM
Updated: Mar 31, 2026, 2:19 AM

Vulnerability Rating

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

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