Unauthenticated Command Injection in ToToLink LR1200GB Router cstecgi.cgi
CVE-2025-60687 is an unauthenticated OS command injection vulnerability in ToToLink LR1200GB Router firmware V9.1.0u.6619_B20230130. The flaw is present in the cstecgi.cgi binary, specifically the sub_41EC68 function, which processes the "imei" parameter from an HTTP request. The implementation validates only that the supplied IMEI value is 15 characters long, but does not safely sanitize or neutralize shell metacharacters before constructing a command string with sprintf() and executing it via system(). As a result, an attacker can supply a crafted 15-character IMEI value that injects arbitrary shell commands, leading to command execution on the device without authentication.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a remote, unauthenticated attacker to execute arbitrary operating system commands on the router. This can result in full compromise of the device, including modification of configuration, installation of persistent malware, interception or redirection of network traffic, use of the router as a pivot point into internal networks, denial of service, and potential exposure of sensitive data handled by the device.
If you can’t patch tonight, do this now.
Restrict access to the router's web management interface to trusted administrative networks only, and disable remote administration from untrusted networks or the Internet. Place the management interface behind network-layer access controls such as firewall rules or VPN-only access. Monitor the device for unexpected process execution, configuration changes, or outbound connections indicative of compromise. If exposure cannot be reduced and no vendor fix is available, consider replacing the affected firmware or device.
Patch, then assume compromise.
Upgrade to a vendor-fixed firmware version if one is available. The vulnerable code path should be corrected by eliminating shell-based command construction for user-controlled input, avoiding use of system() where possible, and replacing sprintf()-based command assembly with safe APIs that do not invoke a shell. Input handling for the "imei" parameter should enforce strict allowlisting of expected numeric IMEI content rather than length-only validation. If no patch is available, the information currently available does not identify a fixed version.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.