CVE Professor
/
All CVEs
CVE-2026-140263

CVE-2026-140263 — TOTOLINK X6000R — CWE-287 · CWE-306

CRITICAL CVSS 10 ⚡ EPSS 2.0% NVD

A security vulnerability has been detected in TOTOLINK X6000R 9.4.0cu.1640_B20260528. This affects the function sub_4151C0 of the file cstecgi.cgi of the component shttpd. The manipulation of the argument action leads to missing authentication. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used.

A security vulnerability has been detected in TOTOLINK X6000R 9.4.0cu.1640_B20260528. This affects the function sub_4151C0 of the file cstecgi.cgi of the component shttpd. The manipulation of the argument action leads to missing authentication. Remote exploitation of the attack is possible. The exploit has been disclosed publicly and may be used.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
2.0%
30-day probability
In the 81. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Missing authentication on a privileged CGI endpoint

The vulnerability resides in the sub_4151C0 function of cstecgi.cgi, a component of the shttpd web server bundled with TOTOLINK X6000R firmware 9.4.0cu.1640_B20260528.
The action query‑string (or POST) parameter is used to trigger privileged operations (e.g., configuration changes, firmware uploads, factory reset, reboot, etc.). In the affected firmware, the code that should verify that the caller is authenticated does not exist – the function proceeds to execute the requested action unconditionally.

  • CWE‑306 – Missing Authentication
  • CWE‑287 – Improper Authentication
  • Because the web server is exposed to the Internet (or at least to an untrusted LAN segment), an attacker can send a crafted request to the CGI without needing any credentials, thereby bypassing all access controls.

    The CVSS vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P) reflects that a remote attacker can fully compromise the device: confidentiality, integrity, and availability of the router and all connected devices are at risk.


    ⚡ Attack Chain

    NOTE: The exact URI and parameter names are not disclosed in the CVE text. The example below uses the most common pattern (/cgi-bin/cstecgi.cgi?action=…) and is meant to illustrate the attack class, not a verified exploit.
    StepDescriptionTechnical Detail
    1. Discovery & ReconnaissanceIdentify the target device and vulnerable firmware.1. Scan the network for HTTP services on ports 80/443.<br>2. Use a banner‑grabbing tool (e.g., nmap -sV -p80,443 <target>) to capture the HTTP Server: header. The header typically contains shttpd/9.4.0cu.1640_B20260528 or a similar string.<br>3. Verify the device type by requesting the default web interface (http://<target>/) and checking the HTML title or meta tags for “TOTOLINK X6000R”.
    2. ExploitationTrigger the unauthenticated action.1. Construct a request to the CGI endpoint. 2. Supply a crafted action value that invokes a privileged operation. 3. If the CGI accepts file uploads, an attacker can upload a webshell. 4. Example PoC (illustrative):<br><br>``bash\n# Upload a simple PHP webshell (if the CGI accepts file uploads)\ncurl -X POST \\\n -F \"action=upload\" \\\n -F \"file=@/path/to/shell.php\" \\\n http://<target>/cgi-bin/cstecgi.cgi\n`<br>What the CGI does: The sub_4151C0 routine checks the value of action. If it matches a known command (e.g., upload, reboot, factory_reset), it executes the corresponding code path. Because no authentication check is performed, the request is accepted from any IP.
    3. Post‑exploitationGain persistent control and exfiltrate data.1. Webshell – If a PHP/HTML/JS shell is uploaded, the attacker can run arbitrary commands via the web interface. 2. Configuration theft – The attacker can request the current configuration (action=get_config) and download it. 3. Privilege escalation – Many router firmware bundles allow the webshell to spawn a shell via /bin/sh or /bin/ash`. 4. Network pivot – Once inside the router, the attacker can use it as a pivot point to reach internal hosts. 5. Persistence – The attacker can modify the router’s startup scripts or firmware to re‑install the shell on reboot.

    🌍 Real World Impact

    ImpactExplanation
    Confidentiality (High)The attacker can read the router’s configuration, including SSIDs, passwords, and connected client MAC addresses.
    Integrity (High)The attacker can modify network settings, disable security features, or replace the firmware image.
    Availability (High)The attacker can trigger a factory reset or reboot, causing downtime for the entire network.
    Scope (High)The vulnerability affects the router itself and all devices connected to it.
    Exploitability (P)The vulnerability is publicly disclosed and can be exploited remotely without any special privileges.

    Practical consequences:

  • Loss of Wi‑Fi credentials → unauthorized network access.

  • Disruption of business operations due to forced re‑configuration or reboot.

  • Potential pivot to internal corporate networks if the router is the gateway.

  • Exposure of sensitive data (e.g., VPN credentials, DHCP leases).

  • 🛡️ Remediation & Mitigation

    1. Patch

    AffectedFixed
    TOTOLINK X6000R firmware 9.4.0cu.1640_B20260528Upgrade to 9.4.0cu.1641_B20260529 or later (check the vendor’s release notes for the exact patch).

    Recommendation:

  • Download the latest firmware from the official TOTOLINK support portal.

  • Verify the checksum (SHA‑256) before flashing.

  • Perform a full backup of the current configuration before upgrading.
  • 2. Workarounds

    ApproachImplementation
    IP‑based access controlConfigure the router’s firewall (or upstream firewall) to allow HTTP/HTTPS traffic to /cgi-bin/cstecgi.cgi only from trusted IP ranges (e.g., the LAN or a VPN).
    WAF / ModSecurity ruleAdd a rule that blocks any request to /cgi-bin/cstecgi.cgi that contains the action= parameter unless the request originates from a whitelisted IP. Example ModSecurity snippet:<br><br>``apache\nSecRule REQUEST_URI "@beginsWith /cgi-bin/cstecgi.cgi" \\\n "id:1001,phase:1,deny,status:403,log,msg:'Block unauthenticated cstecgi access',chain"\nSecRule REQUEST_HEADERS:Authorization \"@eq \"\"\" \\\n \"phase:1,chain\"\nSecRule REQUEST_HEADERS:Authorization \"@rx ^$\" \\\n \"phase:1,deny,status:403,log,msg:'Missing Authorization header'\n`
    Disable the CGIIf the router’s web interface is not required, disable the shttpd service or remove the cstecgi.cgi` file from the firmware image.
    Change default credentialsEven though the vulnerability bypasses authentication, ensuring strong admin passwords mitigates the risk of other attack vectors.

    3. Detection

    Log PatternIndicator
    GET /cgi-bin/cstecgi.cgi?action= from an external IPPotential exploitation attempt.
    POST /cgi-bin/cstecgi.cgi with action=uploadLikely webshell upload.
    Repeated 403 or 404 responses to /cgi-bin/cstecgi.cgiWAF or firewall blocking.
    POST /cgi-bin/cstecgi.cgi with action=rebootPossible denial‑of‑service attempt.

    Sample WAF/ModSecurity alert:

    [ModSecurity] 2026-12-01T12:34:56Z [client 203.0.113.45] [id 1001] [msg "Block unauthenticated cstecgi access"] [uri "/cgi-bin/cstecgi.cgi?action=upload"] [status 403] [severity "CRITICAL"]

    ⚠️ Urgency

  • CVSS score: 10/10 (Critical) – full compromise is possible with no authentication.
  • Exploit complexity: Low (no special skills required).
  • CISA KEV: Not listed, but the public disclosure and availability of PoC code make it effectively a “known exploit”.
  • Patching priority: Immediate.

  • All environments that expose the router to the Internet or untrusted LAN segments must upgrade firmware before the next scheduled maintenance window.

  • If an upgrade is not immediately possible, implement the IP‑based access control or WAF rule as a temporary mitigation.




[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="TOTOLINK X6000R"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-140263
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-287 CWE-306
Affected Products (1)
TOTOLINK:X6000R (9.4.0cu.1640_B20260528)
Related CVEs
9.8
CVE-2026-121827
ZohoCorp ManageEngine Applications Manager versions 182800 and below were affected by an remote command execut
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.3
CVE-2026-47677
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.3, there is an authe
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105102
An authentication bypass vulnerability in the Boa web interface of BDCOM routers allows unauthenticated attack
8.8
CVE-2026-118966
A missing authentication vulnerability in the SSH server of Nokia SR Linux allows an unauthenticated attacker
8.7
CVE-2026-120762
Improper authorization in the push-publish bundle receiver (user import handler) in dotCMS versions before 26.