/

CVE-2026-51628

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51628

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthorized WPS PIN generation and retrieval

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 getGenerateWiFiWpsPin function allows unauthenticated requests to generate and retrieve a new WPS PIN. The issue becomes risky when the management endpoint is reachable and does not enforce authentication or authorization before processing the request.

Affected context

The vulnerability occurs in the TOTOLINK T6 4.1.5cu.748_B20211015 firmware, within the getGenerateWiFiWpsPin function exposed through the /cgi-bin/cstecgi.cgi endpoint. Deployments may be exposed when this endpoint is reachable by an attacker and the request-processing path does not require a valid authenticated session or an appropriate authorization decision.

Exploit preconditions

  • Attack surface: The router's HTTP or management interface exposing /cgi-bin/cstecgi.cgi
  • Required access: Network reachability to the endpoint; authentication may not be required
  • Trigger point: A crafted POST request invoking getGenerateWiFiWpsPin
  • Why exploitation is possible: The function processes the request without adequately enforcing access controls, allowing an unauthenticated caller to generate and retrieve a WPS PIN

Why this happens

The underlying bug is an authorization failure in which a sensitive management operation is reachable without sufficient identity and permission checks. This maps to CWE-284, Improper Access Control, because the application does not reliably restrict a privileged WPS credential operation to authorized users or trusted administrative contexts.

Potential impact

  • An attacker could obtain a newly generated WPS PIN
  • Unauthorized wireless access could become possible, depending on router configuration and WPS behavior
  • An attacker could weaken the security boundary between the router and connected wireless devices
  • The device could be targeted as part of broader network intrusion activity

General mitigation guidance

Mitigation generally focuses on enforcing authentication and authorization consistently for every sensitive management operation. Secure-by-default designs should disable WPS when it is not required, require an authenticated administrative session for PIN generation or retrieval, and apply explicit privilege checks at the function and endpoint layers. Management interfaces should be restricted to trusted networks, and sensitive responses should disclose only the minimum necessary information. Input trust should be reduced by treating all client-supplied routing or action parameters as untrusted, while rate limits, audit logging, and least-privilege service accounts can reduce abuse and potential impact.

How teams detect issues like this

Detection approaches may include static analysis for management handlers that invoke sensitive operations before authentication or authorization checks, code review for endpoints that expose credential or WPS functions, and policy enforcement requiring centralized access-control middleware on administrative routes. Dynamic testing can verify that unauthenticated and low-privilege requests receive denial responses and that sensitive values are not returned. Network monitoring and router audit logs may also identify repeated requests to WPS-related management actions. Automated security review tools can help flag missing authorization checks and inconsistent endpoint protections.

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 exploitable over the network when the router's management endpoint is reachable by an attacker. Exposure depends on interface configuration, network segmentation, and any filtering applied to the management service.

The described flaw allows unauthenticated attackers to submit the relevant request, so a valid account may not be required when the endpoint is accessible.

Require authentication and explicit authorization before invoking WPS PIN generation or returning its value. Disabling WPS when it is unnecessary further reduces exposure.

Apply centralized authorization checks to every administrative route, test unauthenticated and low-privilege access during security reviews, restrict management interfaces to trusted networks, and monitor sensitive operations.

Find out what's already
exploitable in your codebase.