/

CVE-2026-51684

Severity:

CRITICAL RISK

(9.8)

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

CVE-2026-51684

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthenticated device configuration tampering and potential service disruption

Severity:

CRITICAL RISK

(9.8)

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 attackers to change storage-related service state through the setStorageCfg function.

The issue becomes risky when the device exposes its CGI interface to an attacker who can send crafted HTTP POST requests without first proving identity.

Affected context

The vulnerability affects TOTOLINK T6 devices running the specified firmware and handling requests to /cgi-bin/cstecgi.cgi. It occurs when the setStorageCfg function processes storage-related state changes without adequately enforcing authentication or authorization before applying the requested operation.

Exploit preconditions

  • Attack surface: The device's HTTP CGI interface
  • Required access: Network reachability to the management interface; valid credentials may not be required
  • Trigger point: A crafted POST request invoking the setStorageCfg function
  • Why exploitation is possible: The function permits storage-related service state changes without an effective access-control check

Why this happens

The underlying bug is an authorization failure in a management operation. The setStorageCfg function appears to trust a caller's request before confirming that the caller is permitted to change protected device state. This maps to CWE-284: Improper Access Control, in which access restrictions are missing, incomplete, or not consistently enforced for a sensitive resource or operation.

Potential impact

  • An unauthenticated attacker may alter storage-related service settings
  • Device services could become unavailable or operate in an unintended state
  • Network or storage functionality could be disrupted
  • Persistent configuration changes could weaken device availability or administration
  • The device could provide a foothold for follow-on attacks if altered services expose additional weaknesses

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every sensitive management endpoint and treating all client-supplied operation parameters as untrusted.

Common defensive patterns include:

  • Requiring authentication and explicit authorization before storage configuration changes
  • Applying centralized, deny-by-default access-control checks to CGI handlers
  • Separating read-only status operations from state-changing administrative operations
  • Validating requested state transitions against an allowlisted policy
  • Restricting management interfaces to trusted networks and administrative paths
  • Running device services with only the privileges required for their functions
  • Recording and reviewing configuration changes for unexpected unauthenticated activity

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis rules that identify state-changing handlers lacking authentication or authorization checks
  • Code review checks confirming that every CGI operation validates the caller before modifying persistent device state
  • Tests that send unauthenticated requests to administrative endpoints and verify that changes are rejected
  • Web-server and device logs showing POST requests to management CGI paths without successful login events
  • Policy enforcement requiring centralized authorization middleware for configuration-changing APIs

Automated security testing and code-review tools may help identify missing access-control enforcement, but findings should be verified against the device's actual request-routing and session behavior.

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

The vulnerability description indicates that authentication is not required for the affected operation. Network reachability and the ability to submit a crafted POST request are the key conditions.

Enforce authentication and authorization before invoking setStorageCfg, use deny-by-default rules for state-changing operations, and validate all requested configuration changes.

Apply centralized access-control checks to every administrative endpoint, test unauthenticated and low-privilege requests in security reviews, restrict management exposure, and monitor configuration changes.

Find out what's already
exploitable in your codebase.