Skip to content
CVE-2026-135792 Splunk · SPL

Detect Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792) in Splunk

Detects exploitation attempts against CVE-2026-135792, a critical (CVSS 9.3) unauthenticated OS command injection vulnerability in the send_email_authcode function of user.cgi in Panabit Smart Application Gateway (TANGr7p10). An unauthenticated attacker can inject shell metacharacters into the Username argument processed by send_email_authcode (CWE-77/CWE-78), resulting in arbitrary OS command execution on the appliance. The exploit has been publicly disclosed. Detection focuses on HTTP requests to user.cgi containing command-injection metacharacters and on subsequent child-process execution spawned by the CGI/web server process.

Based on nenghun/IoT Panabit Unauthenticated OS Command Injection write-up

MITRE ATT&CK

Tactic
Initial Access Execution

SPL Detection Query

Splunk (SPL)
spl
``` df00tech DF00-ee0cf1cdc2 · https://df00tech.com/detections/CVE-2026-135792 · licence: https://df00tech.com/detections/licence ```
index=web OR index=proxy (uri_path="*user.cgi*" OR url="*user.cgi*")
| eval raw_q=coalesce(uri_query, url)
| eval dec_q=urldecode(raw_q)
| where (match(dec_q, "[;|`&]|\$\(") OR match(raw_q, "%3B|%7C|%26|%60"))
| where (like(dec_q, "%send_email_authcode%") OR like(raw_q, "%send_email_authcode%") OR like(raw_q, "%authcode%"))
| table _time src_ip http_method uri_path raw_q dec_q status dest host
| sort - _time
critical severity medium confidence

Searches web/proxy access logs for requests to user.cgi referencing send_email_authcode/authcode that contain shell metacharacters after URL decoding, indicating CVE-2026-135792 command injection.

Data Sources

Web Server Access LogsProxy Logs

Required Sourcetypes

access_combinediispan:traffic

False Positives & Tuning

  • Legitimate authcode email requests using ampersand parameter separators
  • Authorized vulnerability scans against the appliance
  • Internal penetration tests

Other platforms for CVE-2026-135792


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 Simulated command injection via user.cgi authcode parameter

    Expected signal: Web access log entry for user.cgi with a URL-encoded semicolon and 'id' command in the authcode parameter

  2. Test 2 Encoded pipe injection into user.cgi

    Expected signal: Web access log with %7C (pipe) and 'whoami' in the user.cgi query string

  3. Test 3 Simulated CGI-spawned shell execution

    Expected signal: Process-execution event showing a web/CGI-named parent spawning sh with id/whoami


Response Playbook

Triage

  1. Confirm the destination host is a Panabit Smart Application Gateway (TANGr7p10) and that user.cgi is externally reachable.
  2. URL-decode the captured csUriQuery/uri_query and identify the injected command string and the parameter carrying the authcode request.
  3. Check the HTTP response status and size to determine whether the injected command executed (2xx with anomalous body) versus was blocked.
  4. Correlate the source IP against threat intel and prior failed/successful requests to user.cgi.

Containment

  1. Block the attacker source IP(s) at the perimeter firewall and restrict external access to user.cgi / the management interface.
  2. Isolate the affected gateway from untrusted networks pending vendor patch, applying an ACL that limits administrative access to trusted subnets.

Evidence Collection

  1. Preserve web server access/error logs and any CGI debug logs covering the request window.
  2. Capture process-execution telemetry and shell history on the appliance for commands spawned by the web/CGI process.

Escalation Criteria

  • !Escalate to incident response if command execution is confirmed (reverse shell, downloaded payload, or new persistence).
  • !Escalate to the network/appliance owner immediately given the unauthenticated RCE exposure on a perimeter device.

Investigation Guide

Forensic Artifacts

  • >Web server access/error logs showing user.cgi requests with shell metacharacters
  • >Appliance shell history and files created in web-writable directories
  • >Unexpected outbound connections from the gateway (wget/curl/nc fetches)

Tuning Guidance

Baseline legitimate authcode/password-reset traffic to the appliance and whitelist known scanner IPs. Prefer URL-decoded matching to avoid missing encoded payloads, and pair web-log alerts with appliance process telemetry to confirm execution and suppress scanner-only noise.


Hunting Queries

Aggregates metacharacter-bearing user.cgi requests by source to reveal scanning or repeated exploitation attempts.

Hunting — KQL
kql
// df00tech DF00-ee0cf1cdc2 · https://df00tech.com/detections/CVE-2026-135792 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "user.cgi" | extend d=url_decode(csUriQuery) | where d has_any (";","|","`","$(") | summarize count() by cIP, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-ee0cf1cdc2 · https://df00tech.com/detections/CVE-2026-135792 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="*user.cgi*" | eval d=urldecode(uri_query) | where match(d,"[;|`]|\$\(") | stats count by src_ip

Atomic Red Team Tests

Test 1 Simulated command injection via user.cgi authcode parameter
linux

Sends an HTTP request mimicking the CVE-2026-135792 injection into the send_email_authcode path to validate web-log detection.

Command

bash
curl -s -o /dev/null 'http://TARGET/cgi-bin/user.cgi?action=send_email_authcode&email=test%40test.com%3Bid'

Cleanup

bash
echo 'No cleanup required; GET request only'

Expected Telemetry

Web access log entry for user.cgi with a URL-encoded semicolon and 'id' command in the authcode parameter

Expected Detection

KQL/SPL web-log rules flag the metacharacter-bearing user.cgi authcode request.

Test 2 Encoded pipe injection into user.cgi
linux

Sends a URL-encoded pipe-to-command payload against user.cgi to validate decoded-payload matching.

Command

bash
curl -s -o /dev/null 'http://TARGET/cgi-bin/user.cgi?action=send_email_authcode&email=a%40b.com%7Cwhoami'

Cleanup

bash
echo 'No cleanup required'

Expected Telemetry

Web access log with %7C (pipe) and 'whoami' in the user.cgi query string

Expected Detection

Detection matches after URL-decoding the pipe metacharacter.

Test 3 Simulated CGI-spawned shell execution
linux

Emulates a web/CGI process spawning a shell to validate endpoint process-execution detection.

Command

bash
cp /bin/sh /tmp/httpd-sim && /tmp/httpd-sim -c 'id; whoami'

Cleanup

bash
rm -f /tmp/httpd-sim

Expected Telemetry

Process-execution event showing a web/CGI-named parent spawning sh with id/whoami

Expected Detection

EQL/CrowdStrike CQL process rules flag the web-process-spawned shell.

Related Detections