Totolink WA300 OS Command Injection Vulnerability Allowing Remote Code Execution

Vulnerability

A remote code execution vulnerability has been identified in the Totolink WA300 router, specifically in the firmware version 5.2cu.7112_B20190227. The issue arises in the 'setAPNetwork' function within the '/cgi-bin/cstecgi.cgi' file, where the 'Ipaddr' parameter is manipulated to inject operating system commands. The vulnerability exists because the server fails to properly validate or sanitize the input before executing it as a system command, allowing unauthorized remote attackers to execute arbitrary commands with root privileges on the device.

Impact

Exploitation of this vulnerability allows for arbitrary operating system command execution with root privileges on the affected device.

Reproduction

To reproduce this vulnerability, send a POST request to '/cgi-bin/cstecgi.cgi' with the 'Ipaddr' parameter containing a command injection payload, such as a command wrapped in backticks. The injected command will be executed on the device's operating system.

Added: Feb 8, 2026, 5:19 PM
Updated: Feb 8, 2026, 5:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
2.9
threat
6.4
urgency
2.9
incentive
4.2

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