Overview

The vulnerability affects the CGI handler (/cgi-bin/cstecgi.cgi) of TOTOLINK A7100RU devices running firmware version 7.4cu.2313_B20191024. By manipulating the Username parameter of the exportOvpn function, an attacker can inject operating system commands that the device will execute. The flaw is exploitable remotely over the network without authentication.

Technical details

The exportOvpn CGI endpoint fails to properly sanitize the Username argument, concatenating it directly into a shell command. An attacker who can send a crafted request to /cgi-bin/cstecgi.cgi can embed malicious commands in the Username field, which the underlying OS will execute with the privileges of the web server process. No additional privileges or authenticated session are required.

Impact

Successful exploitation grants an attacker remote command execution on the affected router, enabling actions such as installing backdoors, altering configurations, or exfiltrating data. All deployments of TOTOLINK A7100RU running the specified firmware are exposed.

Recommended actions

  • Patch the device using the vendor's security update.
  • Restrict network access to the device's management interface to trusted hosts.
  • Monitor CGI handler logs for unexpected command executions or abnormal Username values.
  • Disable remote CGI access if it is not required for operations.

Detection

Review web server and CGI logs for requests to /cgi-bin/cstecgi.cgi that contain the exportOvpn action. Look for unusual or long Username parameters that include shell metacharacters such as ';', '|', or '&'. Correlate any unexpected command execution entries with network traffic from unauthorized sources and generate alerts for anomalous activity.

Reference: NVD entry for CVE-2026-134882