/

CVE-2026-51681

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51681

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthorized Administrative Access

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 flaw in the TOTOLINK T6 allows unauthenticated requests to reach WAN-side administration functionality through the setRemoteCfg operation. An attacker who can send a crafted POST request to the exposed CGI endpoint may bypass intended authorization and access or alter router configuration.

Affected context

The issue affects TOTOLINK T6 devices running the identified firmware and using the /cgi-bin/cstecgi.cgi endpoint. Risk is higher when WAN-side administration is enabled or when the device exposes this endpoint beyond a trusted management network, because authorization checks in setRemoteCfg may not adequately restrict unauthenticated callers.

Exploit preconditions

  • Attack surface: HTTP or HTTPS access to the router's CGI administration endpoint
  • Required access: No authentication may be required when the vulnerable request path is reachable
  • Trigger point: A crafted POST request targeting the setRemoteCfg function
  • Why exploitation is possible: The function does not consistently enforce authorization before processing remote configuration requests

Why this happens

The underlying bug is an authorization failure in a management operation. The setRemoteCfg function accepts a remote configuration request without reliably verifying that the caller has an authenticated and authorized administrative session. This behavior maps to CWE-284: Improper Access Control, in which access to a protected resource or function is not constrained according to the intended security policy.

Potential impact

  • An attacker could expose or access WAN-side administration functions
  • An attacker may modify network, access-control, or device configuration
  • The device could be redirected to attacker-controlled services
  • Confidentiality, integrity, and availability of connected networks could be affected
  • The router could be used as a foothold for further network activity

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every management operation and reducing exposure of administrative interfaces.

Common defensive patterns include:

  • Require a valid authenticated administrator session before processing remote configuration changes
  • Apply centralized authorization checks to CGI handlers and backend functions
  • Disable WAN-side administration unless it is specifically required
  • Restrict management access to trusted networks, VPNs, or allowlisted administrative hosts
  • Use secure-by-default settings that bind management services to internal interfaces
  • Apply least privilege to configuration-changing operations and separate read-only functions from mutation paths
  • Log and rate-limit rejected and accepted remote administration requests

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and code review checks for management handlers that process requests before authentication and authorization
  • Tests that invoke configuration-changing endpoints without credentials and verify denial
  • Review of routing, firewall, and device policies for WAN-exposed administration services
  • Monitoring for unusual POST requests to CGI administration paths and unexpected configuration changes
  • Automated security testing that checks authorization consistently across equivalent management functions

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 affected CGI endpoint is reachable from an untrusted network, particularly when WAN-side administration is exposed.

The described flaw permits unauthenticated access to the affected operation, so an attacker may not need valid administrative credentials if the endpoint is reachable.

Enforce authentication and authorization before entering configuration-changing logic, while limiting management services to trusted interfaces and networks.

Apply deny-by-default authorization, test every administrative endpoint without credentials, minimize WAN exposure, and monitor configuration changes and rejected access attempts.

Find out what's already
exploitable in your codebase.