/

CVE-2026-51701

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51701

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-284

Impact:

Unauthorized modification of network access-control rules

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 allows unauthenticated attackers to alter device access-control rules through the setMacFilterRules function.

An attacker who can reach the affected CGI endpoint may change which devices are permitted or blocked, potentially disrupting network access or weakening local security controls.

Affected context

The vulnerability occurs in TOTOLINK T6 firmware version 4.1.5cu.748_B20211015 when the device exposes the /cgi-bin/cstecgi.cgi endpoint and processes requests for the setMacFilterRules function without sufficiently enforcing authentication or authorization. The risk is greater when the router's management interface is reachable from an untrusted network.

Exploit preconditions

  • Attack surface: The router's HTTP CGI management interface
  • Required access: Network connectivity to the affected endpoint; authentication may not be required
  • Trigger point: A crafted POST request invoking setMacFilterRules
  • Why exploitation is possible: The function does not adequately verify whether the requester is authorized to modify access-control settings

Why this happens

The underlying bug is an authorization failure in a management operation. The setMacFilterRules function accepts a request that changes security-sensitive device state without reliably enforcing the required access-control decision.

This maps to CWE-284: Improper Access Control, where a protected resource or operation is insufficiently restricted. The insecure pattern is exposing a privileged configuration action through a request handler without establishing authenticated identity and verifying permission before applying the change.

Potential impact

  • An attacker may alter MAC-based access-control rules
  • Authorized devices could be blocked from network access
  • Unauthorized devices could be permitted to connect
  • Network availability and local security policies could be weakened
  • The router configuration could be modified without the owner's approval

General mitigation guidance

Mitigation generally focuses on enforcing authorization at every security-sensitive management operation.

Common defensive patterns include:

  • Require authenticated sessions before processing access-control changes
  • Perform server-side authorization checks for the specific device and operation
  • Reject requests that lack a valid identity, session, or anti-forgery context
  • Limit management interfaces to trusted administration networks
  • Apply least privilege to management functions and separate read-only from configuration actions
  • Use secure-by-default network-management settings that do not expose administration services to untrusted networks
  • Treat all request parameters as untrusted and validate them against an explicit configuration schema

How teams detect issues like this

Organizations can assess for this class of issue through:

  • Static analysis checks for CGI handlers that modify configuration without nearby authentication and authorization enforcement
  • Code review of every route that changes firewall, filtering, account, or network settings
  • Dynamic testing that sends unauthenticated and under-privileged requests to management operations and verifies that state remains unchanged
  • Web application firewall or gateway policies restricting management endpoints to trusted networks
  • Audit logging and alerting for access-control rule changes, especially requests lacking an authenticated administrator identity
  • Automated security review tools that identify missing authorization checks and exposed administrative routes

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. Exposure depends on device network configuration and management-interface access policies.

The described flaw allows unauthenticated requests to change access-control rules, so a valid administrative login may not be required when the vulnerable endpoint is accessible.

Require authentication and verify authorization for the specific rule-management operation before accepting or applying any configuration change.

Enforce centralized authorization checks on all administrative routes, restrict management interfaces to trusted networks, validate request data server-side, and monitor security-sensitive configuration changes.

Find out what's already
exploitable in your codebase.