/

CVE-2026-51621

Severity:

HIGH RISK

(7.5)

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

CVE-2026-51621

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Sensitive Information Disclosure

Severity:

HIGH RISK

(7.5)

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

An access control flaw in the getInitCfg function of the TOTOLINK T6 router may allow unauthenticated attackers to retrieve sensitive device configuration information. The issue becomes risky when the affected CGI endpoint processes crafted POST requests without verifying the caller's authorization.

Affected context

The vulnerability occurs in TOTOLINK T6 devices running the affected firmware when the getInitCfg function is exposed through /cgi-bin/cstecgi.cgi. It may be present where the endpoint accepts configuration-related requests without requiring authentication or applying sufficient authorization checks.

Exploit preconditions

  • Attack surface: The router's HTTP or CGI management interface
  • Required access: Network reachability to the affected endpoint; authentication may not be required
  • Trigger point: A crafted POST request addressed to /cgi-bin/cstecgi.cgi
  • Why exploitation is possible: The getInitCfg function does not adequately enforce access controls before returning device configuration data

Why this happens

The underlying defect is an authorization failure in a configuration retrieval function. The endpoint treats a request as eligible to access sensitive device settings without first confirming that the caller has the required privileges. This behavior maps to CWE-284: Improper Access Control, in which access restrictions are missing, insufficient, or incorrectly applied to a protected resource.

Potential impact

  • An attacker may obtain sensitive router configuration information
  • Exposed settings could aid further attacks against the device or connected network
  • Disclosure may reveal operational details, credentials, or other security-relevant values if included in the response
  • An attacker could use the information to improve targeting or facilitate lateral movement

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every sensitive configuration access point.

Common defensive patterns include:

  • Requiring authentication and appropriate administrative privileges before processing configuration retrieval requests
  • Applying deny-by-default access rules to management and CGI endpoints
  • Returning only the minimum configuration data necessary for an authorized function
  • Separating public request handling from privileged configuration operations
  • Protecting management interfaces through network segmentation and restricted administrative access
  • Avoiding inclusion of secrets or reusable credentials in configuration responses

These controls reduce exposure even when an endpoint is reachable from an untrusted network.

How teams detect issues like this

Organizations can identify similar weaknesses through:

  • Static analysis and route reviews that trace CGI handlers to authorization checks
  • Code review signals showing configuration reads performed before identity or privilege validation
  • Dynamic testing of management endpoints with unauthenticated and low-privilege sessions
  • Monitoring for unusual POST requests to configuration-related CGI functions
  • Policy enforcement requiring authentication and authorization coverage for administrative APIs

Automated security testing and code review tools may help identify endpoints that expose sensitive data without effective access controls.

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 CGI management interface is reachable by an attacker. The required exposure depends on how the device's management services are configured and filtered.

The described flaw allows unauthenticated access to the affected function, so valid credentials may not be required when the endpoint is reachable.

Enforce authentication and privilege checks before any configuration data is retrieved, and limit responses to the minimum information required.

Apply deny-by-default authorization policies, review every administrative endpoint, test unauthenticated access paths, and avoid exposing sensitive configuration values through management APIs.

Find out what's already
exploitable in your codebase.