Skip to main content
CVE Vulnerability Database

CVE-2025-3665: Totolink A3700r Auth Bypass Vulnerability

CVE-2025-3665 is an authentication bypass vulnerability in Totolink A3700r Firmware affecting the setSmartQosCfg function, allowing remote attackers to circumvent access controls. This article covers technical details, affected versions, impact assessment, and available mitigation strategies.

Published:

CVE-2025-3665 Overview

CVE-2025-3665 is an improper access control vulnerability in the TOTOLINK A3700R router running firmware version 9.1.2u.5822_B20200513. The flaw resides in the setSmartQosCfg function within /cgi-bin/cstecgi.cgi. Attackers can reach the vulnerable endpoint remotely over the network without authentication or user interaction. Public disclosure of the exploit technique has occurred, and the vendor did not respond to disclosure attempts. The weakness is tracked under [CWE-266: Incorrect Privilege Assignment].

Critical Impact

Remote, unauthenticated attackers can manipulate Smart QoS configuration on affected TOTOLINK A3700R devices, altering router behavior without valid credentials.

Affected Products

  • TOTOLINK A3700R router (hardware)
  • TOTOLINK A3700R firmware version 9.1.2u.5822_B20200513
  • Deployments exposing the web management interface (/cgi-bin/cstecgi.cgi) to untrusted networks

Discovery Timeline

  • 2025-04-16 - CVE-2025-3665 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-3665

Vulnerability Analysis

The vulnerability affects the setSmartQosCfg handler exposed through the CGI binary /cgi-bin/cstecgi.cgi on the A3700R web management interface. This endpoint governs Smart Quality of Service (QoS) configuration on the router. The handler fails to enforce proper authorization checks before applying configuration changes. As a result, an attacker who can reach the HTTP interface can submit crafted requests that modify router settings intended to be restricted to administrators. The issue is classified as improper access control and mapped to [CWE-266]. According to EPSS data from 2026-07-07, the exploitation probability remains low, but public disclosure increases the practical risk for exposed devices.

Root Cause

The root cause is missing or incorrect privilege enforcement on the setSmartQosCfg action. The CGI handler processes requests to change QoS configuration without validating that the caller holds administrative privileges. Access decisions rely on assumptions about interface reachability rather than authenticated session state, which is characteristic of [CWE-266] weaknesses in embedded router firmware.

Attack Vector

Exploitation occurs over the network by sending an HTTP request to /cgi-bin/cstecgi.cgi targeting the setSmartQosCfg function. No authentication, elevated privileges, or user interaction is required. Attackers who reach the management interface — either on the LAN or through a WAN-exposed admin service — can invoke the vulnerable function directly. Technical details of the request structure are published in the Notion technical write-up and the VulDB entry #304843.

No verified proof-of-concept code is included here. Refer to the linked references for request formatting and reproduction details.

Detection Methods for CVE-2025-3665

Indicators of Compromise

  • HTTP POST requests to /cgi-bin/cstecgi.cgi referencing the setSmartQosCfg topicurl or function parameter from unexpected source addresses.
  • Unexplained changes to Smart QoS policy, bandwidth rules, or traffic prioritization on A3700R devices.
  • Access to the router web interface from WAN-side IP addresses when remote management should be disabled.

Detection Strategies

  • Inspect router and upstream firewall logs for requests to cstecgi.cgi containing setSmartQosCfg invocations without a preceding authenticated login sequence.
  • Baseline QoS configuration and alert on drift detected through configuration exports or SNMP polling.
  • Deploy network intrusion detection signatures matching the URI path and function parameter used by the disclosed exploit.

Monitoring Recommendations

  • Monitor administrative interface traffic on all TOTOLINK A3700R devices for anomalous request patterns.
  • Track outbound traffic anomalies that may indicate the router is being repurposed after configuration tampering.
  • Alert on any access to /cgi-bin/cstecgi.cgi originating from the WAN interface.

How to Mitigate CVE-2025-3665

Immediate Actions Required

  • Disable remote (WAN-side) administration on the TOTOLINK A3700R until a fix is available.
  • Restrict LAN access to the web management interface using ACLs or a management VLAN.
  • Change default administrator credentials and audit existing QoS configuration for tampering.
  • Consider replacing the device if it is deployed in a high-risk or internet-exposed role, given the vendor's lack of response to disclosure.

Patch Information

No vendor patch has been published. The TOTOLINK disclosure record notes that the vendor was contacted early but did not respond. Monitor the TOTOLINK official website for firmware updates addressing the setSmartQosCfg handler in versions after 9.1.2u.5822_B20200513.

Workarounds

  • Block inbound access to TCP ports serving the router web UI (typically 80/443) from untrusted networks.
  • Place affected routers behind an upstream firewall that filters requests to /cgi-bin/cstecgi.cgi from non-administrative hosts.
  • Segment IoT and consumer-grade networking equipment onto isolated VLANs with strict egress controls.
  • Where feasible, migrate to a supported router platform that receives timely security updates.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.