/

CVE-2026-51649

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51649

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthenticated Sensitive Information Disclosure

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

An incorrect access-control check in the TOTOLINK T6 getDiagnosisCfg function may expose diagnostic configuration and ping log contents through the device's CGI interface.

An unauthenticated attacker could send a crafted POST request to /cgi-bin/cstecgi.cgi and retrieve information that should be restricted to authorized administrators.

Affected context

The issue occurs in TOTOLINK T6 devices using the affected diagnostic configuration handler. Risk is present when the CGI endpoint accepts requests without requiring authentication or enforcing authorization before returning diagnostic configuration and ping log data.

Exploit preconditions

  • Attack surface: The device's HTTP CGI interface
  • Required access: Network reachability to /cgi-bin/cstecgi.cgi; authentication may not be required
  • Trigger point: A crafted POST request invoking the getDiagnosisCfg function
  • Why exploitation is possible: The handler does not adequately verify whether the requester is authorized to access diagnostic configuration and ping log contents

Why this happens

The vulnerability results from an authorization boundary that is missing, incomplete, or incorrectly applied in the getDiagnosisCfg request handler.

The function appears to process a sensitive diagnostic operation without reliably establishing the caller's identity and permissions. This maps to CWE-284: Improper Access Control, where protected functionality or data can be reached without the required authorization decision.

Potential impact

  • Unauthenticated attackers may obtain diagnostic configuration data
  • Exposed ping logs could reveal network addresses, connectivity details, or operational information
  • Disclosed information could support reconnaissance against the device or connected network
  • Attackers could use the information to identify additional weaknesses or tailor later attacks

General mitigation guidance

Mitigation generally focuses on enforcing authorization consistently at the server-side handler and protecting diagnostic data by default.

Common defensive patterns include:

  • Require authentication and explicit administrator authorization before processing diagnostic configuration requests
  • Apply authorization checks before any sensitive data is read or returned
  • Use deny-by-default access policies for diagnostic and management endpoints
  • Limit returned data to the minimum necessary for the authorized administrative function
  • Avoid exposing management CGI interfaces to untrusted networks
  • Record and review rejected requests and unusual access to diagnostic endpoints
  • Separate diagnostic privileges from broader device administration where practical

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and code review of CGI handlers for missing authentication or authorization checks
  • Tests that invoke management endpoints with no session, invalid sessions, and insufficient privileges
  • API policy checks requiring authentication metadata and explicit authorization decisions for sensitive routes
  • Network monitoring for unsolicited POST requests to diagnostic CGI functions
  • Automated security testing that verifies sensitive responses are not returned to unauthenticated callers

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 device's CGI interface is reachable by an attacker. The practical scope depends on network exposure and device management settings.

The reported weakness allows unauthenticated access to the affected diagnostic function, so a valid administrator session may not be required.

Enforce authentication and an explicit authorization decision before getDiagnosisCfg reads or returns diagnostic configuration and ping log data.

Apply deny-by-default policies to management endpoints, test every sensitive route with anonymous and low-privilege requests, and limit administrative interfaces to trusted networks.

Find out what's already
exploitable in your codebase.