/

CVE-2026-51622

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51622

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthorized disclosure of WAN configuration data

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 router's getWanCfg function may expose WAN configuration data through the cgi-bin/cstecgi.cgi endpoint. An unauthenticated attacker could obtain this information by sending a specially crafted POST request when the management interface is reachable.

Affected context

The vulnerability occurs in TOTOLINK T6 4.1.5cu.748_B20211015 when the router processes requests for the getWanCfg function through /cgi-bin/cstecgi.cgi. Risk is increased when the device's management interface is exposed beyond a trusted administrative network or when the endpoint does not apply authentication and authorization checks consistently.

Exploit preconditions

  • Attack surface: The router's HTTP management interface and the /cgi-bin/cstecgi.cgi endpoint
  • Required access: No authentication may be required when the affected endpoint is reachable
  • Trigger point: A crafted POST request targeting the getWanCfg function
  • Why exploitation is possible: The function does not correctly enforce access control before returning WAN configuration data

Why this happens

The underlying bug is an authorization failure in which a sensitive configuration-reading operation can be reached without adequate authentication or permission checks. This maps to CWE-284, Improper Access Control, because the application fails to consistently enforce the intended security boundary before disclosing protected router configuration data.

Potential impact

  • An attacker could obtain WAN configuration details
  • Exposed data may aid further attacks against the router or connected services
  • Disclosure could reveal network topology, connection parameters, or other sensitive settings
  • The incident could support follow-on unauthorized access or targeted disruption

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every sensitive

management operation rather than relying on endpoint reachability or client

assumptions.

Common defensive patterns include:

  • Require authentication and explicit authorization before returning WAN configuration data
  • Apply centralized access-control checks to all CGI actions and administrative APIs
  • Expose management interfaces only through trusted, restricted networks
  • Return only the minimum configuration fields required for the legitimate operation
  • Run management services with narrowly scoped privileges
  • Use secure-by-default administrative settings that do not permit unauthenticated configuration access
  • Treat all request parameters and action names as untrusted input

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules identifying sensitive handlers without nearby authentication or authorization checks
  • Code review signals such as direct configuration disclosure from CGI endpoints
  • Integration tests that invoke administrative functions with anonymous and low-privilege sessions
  • Web-server and router logs showing repeated POST requests to CGI management endpoints
  • Policy enforcement requiring authentication coverage for every configuration-read and configuration-write operation
  • Automated security review tools that test endpoint authorization boundaries

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 interface and affected CGI endpoint are reachable by an attacker. Exposure depends on network configuration and administrative access controls.

The described flaw allows unauthenticated access to the affected function, so an account may not be required when the endpoint is accessible.

Require authentication and explicit authorization before processing the getWanCfg operation or returning any WAN configuration data.

Apply centralized authorization checks to all management endpoints, test anonymous access during security reviews, restrict administrative interfaces to trusted networks, and enforce least-privilege access.

Find out what's already
exploitable in your codebase.