/

CVE-2026-51723

Severity:

CRITICAL RISK

(9.1)

Improper Access Control (CWE-284) in TOTOLINK T6 Router

CVE-2026-51723

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthorized Module Installation and Potential Remote Code Execution

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical access-control vulnerability in the TOTOLINK T6 allows unauthenticated attackers to install a custom CGI module through the UploadCustomModule function. A crafted POST request sent to the exposed CGI endpoint may let an attacker introduce executable functionality without first proving authorization.

Affected context

The vulnerability occurs in TOTOLINK T6 firmware version 4.1.5cu.748_B20211015 when the UploadCustomModule function is reachable through the device's CGI interface. Risk is increased when the management endpoint is accessible to untrusted network users and the function does not enforce authentication or authorization before processing module-upload requests.

Exploit preconditions

  • Attack surface: The device's HTTP CGI interface at /cgi-bin/cstecgi.cgi
  • Required access: Network reachability to the affected endpoint; valid credentials may not be required
  • Trigger point: A crafted POST request invoking UploadCustomModule
  • Why exploitation is possible: The function reportedly accepts custom module installation requests without adequately checking the caller's authorization

Why this happens

The underlying issue is an authorization failure in a sensitive administrative operation. The UploadCustomModule function appears to trust a request before verifying that the caller has the privileges required to install executable CGI functionality. This behavior maps to CWE-284, Improper Access Control, because a security-sensitive resource or action is not sufficiently restricted to authorized users.

Potential impact

  • An unauthenticated attacker may install an unauthorized CGI module
  • The installed module could enable arbitrary command or code execution with the device's privileges
  • An attacker could alter router behavior, configuration, or traffic handling
  • Compromise could support persistence, credential theft, or lateral movement
  • Device availability and network confidentiality may be affected

General mitigation guidance

Mitigation generally focuses on enforcing authorization at the server-side

handler before accepting or installing custom modules.

Common defensive patterns include:

  • Requiring strong authentication and explicit administrative authorization for module installation
  • Applying centralized access-control checks to every sensitive CGI operation
  • Disabling custom module functionality when it is not required
  • Validating uploaded files against strict type, signature, and integrity policies
  • Storing executable components in protected locations with least-privilege permissions
  • Limiting management interfaces to trusted administration networks
  • Running device services with the minimum privileges necessary

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis of CGI handlers for sensitive operations lacking authentication or authorization checks
  • Code review of upload, firmware, plugin, and module-installation paths
  • Tests that invoke administrative endpoints with missing, invalid, or low-privilege sessions
  • Network monitoring for unexpected POST requests to /cgi-bin/cstecgi.cgi
  • File-integrity monitoring for newly created or modified CGI modules
  • Policy enforcement requiring authorization tests for every security-sensitive API

Automated security review tools may help identify unprotected administrative functions, but endpoint-specific testing remains important.

Sources

SourceLink
github.comgithub.com/DarkBoulder/CVE-Vendor-Coordination/blob/main/TOTOLINK/README.md
github.comgithub.com/ShengWu00/CVE-Vendor-Coordination/blob/main/TOTOLINK/README.md
totolink.nettotolink.net/
totolink.nettotolink.net/home/menu/detail/menu_listtpl/download/id/190/ids/36.html

Frequently asked

questions

Based on the vulnerability description, an attacker who can reach the affected CGI endpoint may invoke the module-upload function without authentication.

The attacker needs network access to the TOTOLINK device's management interface. Exposure depends on network configuration, firewall rules, and whether remote administration is enabled.

Enforce authentication and authorization before processing any custom module upload or installation request, and disable the feature when it is unnecessary.

Treat every module, plugin, firmware, and configuration change as a privileged operation, apply centralized authorization checks, validate uploaded content, and test sensitive endpoints with unauthenticated and low-privilege requests.

Find out what's already
exploitable in your codebase.