/

CVE-2026-51677

Severity:

CRITICAL RISK

(9.1)

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

CVE-2026-51677

Deferred

Vulnerability type

Category:

Improper Access Control

CWE:

CWE-284

Impact:

Unauthorized Configuration Change

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 UPnP configuration handler allows unauthenticated users to change the UPnP service state. The vulnerability becomes risky when the device's CGI interface is reachable by an attacker who can send crafted HTTP POST requests.

Affected context

This issue occurs in the TOTOLINK T6 4.1.5cu.748_B20211015 firmware, within the setUPnPCfg function exposed through the /cgi-bin/cstecgi.cgi interface. Deployments are more exposed when the management or CGI service is reachable from untrusted network segments and the UPnP state change is not protected by effective authentication and authorization checks.

Exploit preconditions

  • Attack surface: The device's HTTP CGI configuration interface
  • Required access: Network reachability to the affected endpoint; authentication may not be required
  • Trigger point: Processing of a crafted POST request targeting the UPnP configuration operation
  • Why exploitation is possible: The handler does not correctly enforce access controls before applying the requested UPnP service-state change

Why this happens

The vulnerability results from an authorization failure in a configuration-changing request handler. The setUPnPCfg function permits a security-sensitive state change without reliably verifying that the requester is authenticated and authorized, mapping to CWE-284: Improper Access Control. The insecure pattern is trusting client-supplied configuration requests without enforcing server-side authorization at the operation boundary.

Potential impact

  • An unauthenticated attacker may enable or disable the UPnP service
  • Network exposure and device behavior could be altered without administrative approval
  • Security controls that depend on the intended UPnP state may be weakened
  • The device could become more vulnerable to follow-on attacks or unauthorized network interaction

General mitigation guidance

Mitigation generally focuses on enforcing authorization for every configuration-changing operation and reducing exposure of administrative interfaces.

Common defensive patterns include:

  • Requiring robust authentication and explicit authorization before changing UPnP settings
  • Applying server-side access checks at the handler that performs the state change
  • Restricting management and CGI interfaces to trusted administration networks
  • Using secure-by-default UPnP settings and disabling the service when it is not required
  • Applying least privilege to configuration and service-control operations
  • Validating request structure and rejecting unexpected or unauthenticated state-change requests

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis rules that identify state-changing handlers without adjacent authorization checks
  • Code review signals such as CGI endpoints that mutate device configuration before identity and privilege validation
  • API and firmware testing that verifies unauthenticated requests cannot alter service state
  • Network monitoring for unexpected POST requests to configuration CGI endpoints
  • Policy enforcement requiring authentication, authorization, and network restrictions for administrative interfaces

Automated firmware analysis and security-focused code review tools may help identify similar access-control gaps.

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 affected CGI interface is reachable and the device does not require effective authentication for the operation.

Based on the description, authentication is not required. Network reachability to the endpoint is the primary access requirement.

Enforce authentication and authorization at the setUPnPCfg operation before any UPnP state change is applied, while limiting access to trusted management networks.

Apply server-side authorization consistently to every configuration-changing endpoint, use secure-by-default service settings, and test unauthenticated and low-privilege requests during security reviews.

Find out what's already
exploitable in your codebase.