/

CVE-2026-51668

Severity:

HIGH RISK

(7.5)

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

CVE-2026-51668

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthorized Configuration Modification

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 improper access control vulnerability in the TOTOLINK T6 allows unauthenticated requests to modify language configuration through the setLanguageCfg function. An attacker who can reach the exposed CGI endpoint may submit a crafted POST request to alter router settings without first proving identity.

Affected context

The vulnerability occurs in TOTOLINK T6 firmware version 4.1.5cu.748_B20211015 when the web management interface exposes the /cgi-bin/cstecgi.cgi endpoint and routes requests to the setLanguageCfg function without adequate authorization checks. Risk depends on network reachability and whether the management service is accessible from an attacker-controlled network.

Exploit preconditions

  • Attack surface: The router's HTTP or HTTPS CGI management interface
  • Required access: Network reachability to the management endpoint; authentication may not be required
  • Trigger point: A crafted POST request invoking the setLanguageCfg operation
  • Why exploitation is possible: The function permits configuration changes without reliably verifying that the requester has the required administrative privileges

Why this happens

The underlying issue is an authorization failure in a configuration-changing handler. The setLanguageCfg function processes a state-changing request without enforcing an appropriate access-control decision before applying the requested update. This maps to CWE-284: Improper Access Control, in which a protected resource or operation is not adequately restricted to authorized users.

Potential impact

  • An unauthenticated attacker may alter router language configuration
  • Modified settings could impair administrative usability or obscure interface behavior
  • The weakness could provide a foothold for broader configuration tampering if related controls are also insufficient
  • Administrative trust in the device's management interface could be reduced

General mitigation guidance

Mitigation generally focuses on enforcing authorization consistently for every state-changing management operation.

Common defensive patterns include:

  • Require authenticated, authorized sessions before processing configuration updates
  • Apply centralized access-control checks at the endpoint and handler layers
  • Use deny-by-default policies for administrative CGI operations
  • Restrict management interfaces to trusted networks or dedicated administration paths
  • Validate configuration changes and record security-relevant audit events
  • Run management services with only the privileges needed to perform their functions

How teams detect issues like this

Detection can include reviewing CGI handlers for state-changing operations that lack explicit authentication and authorization checks. Static analysis and code review should flag routes that dispatch directly to configuration functions, trust client-supplied operation names, or perform updates before session validation. Runtime monitoring can alert on unauthenticated POST requests to administrative endpoints, unexpected language-setting changes, and configuration modifications originating outside approved management networks. Automated security testing and API policy checks can help verify that every administrative operation requires the intended privilege level.

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 CGI interface is reachable by an attacker. Exposure depends on deployment and network-access controls.

The described behavior does not require authentication, making unauthenticated access to the affected endpoint the key condition.

Enforce authentication and authorization before any configuration-changing handler executes, using centralized deny-by-default access-control logic.

Inventory all administrative endpoints, test them without credentials and with low-privilege sessions, require explicit authorization for state-changing actions, and monitor configuration changes.

Find out what's already
exploitable in your codebase.