/

CVE-2026-51645

Severity:

CRITICAL RISK

(9.8)

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

CVE-2026-51645

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthorized Information Disclosure

Severity:

CRITICAL RISK

(9.8)

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 requests to retrieve the administrative username through the getPasswordCfg function.

An attacker who can reach the affected CGI endpoint may send a specially crafted POST request and obtain administrative account information without first authenticating.

Affected context

The vulnerability occurs in TOTOLINK T6 firmware version 4.1.5cu.748_B20211015 when the router exposes the /cgi-bin/cstecgi.cgi endpoint and routes crafted POST data to the getPasswordCfg function. Risk is higher when the device management interface is reachable from an untrusted network and the function does not consistently enforce authentication or authorization before returning administrative configuration data.

Exploit preconditions

  • Attack surface: The router's CGI-based management interface
  • Required access: Network connectivity to the affected endpoint; authentication may not be required
  • Trigger point: A crafted POST request processed by getPasswordCfg
  • Why exploitation is possible: The function may disclose administrative account information before verifying that the requester has sufficient privileges

Why this happens

The underlying issue is an authorization check failure in a sensitive configuration-retrieval function. The application exposes administrative information through a request path that does not reliably enforce authentication and authorization controls, which maps to CWE-284: Improper Access Control. The insecure pattern is treating endpoint reachability or request formatting as sufficient permission to access protected configuration data.

Potential impact

  • An attacker may learn the administrative username
  • Exposed account information could support targeted credential attacks
  • The disclosure could improve reconnaissance against the router's management interface
  • Combined with other weaknesses, the issue could contribute to unauthorized administrative access

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every sensitive handler and minimizing the information returned by management endpoints.

Common defensive patterns include:

  • Require authentication and explicit authorization before retrieving administrative configuration data
  • Apply centralized access-control checks consistently across CGI functions
  • Return only the minimum data required for a legitimate operation
  • Avoid exposing management interfaces to untrusted networks where possible
  • Use distinct, strong administrative credentials and limit administrative privileges
  • Treat all request parameters as untrusted and validate them against an allowlist

How teams detect issues like this

Organizations can assess for this class of issue through:

  • Static analysis rules that identify sensitive handlers lacking authentication or authorization checks
  • Code review of CGI routes that retrieve usernames, passwords, or other administrative settings
  • Dynamic testing that verifies protected endpoints reject unauthenticated requests
  • Network monitoring for unusual POST requests to management CGI paths
  • Policy enforcement requiring authorization tests for every administrative API function

Automated security review tools may help identify missing access-control checks, but endpoint behavior should also be validated in a controlled test environment.

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

It may be remotely exploitable when the router's management CGI endpoint is reachable by an attacker. Exposure depends on network placement, interface configuration, and access-control boundaries.

The described behavior indicates that authentication may not be required to obtain the administrative username. Network access to the affected endpoint is still necessary.

Enforce authentication and authorization before entering any function that retrieves administrative configuration, and return only narrowly scoped data after access checks succeed.

Use centralized authorization middleware, test unauthenticated and low-privilege access paths, minimize sensitive responses, and keep management interfaces isolated from untrusted networks.

Find out what's already
exploitable in your codebase.