Detect Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792) in Sumo Logic CSE
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
Sumo Detection Query
// df00tech DF00-ee0cf1cdc2 · https://df00tech.com/detections/CVE-2026-135792 · licence: https://df00tech.com/detections/licence
_sourceCategory=*web* OR _sourceCategory=*proxy*
| parse regex "(?<method>\w+)\s(?<uri>\S+)\sHTTP" nodrop
| where uri matches "*user.cgi*"
| where uri matches "*authcode*"
| where uri matches /[;|`&]|\$\(|%3B|%7C|%60/
| fields _messagetime, src_ip, method, uri, status
| sort by _messagetime desc Surfaces requests to user.cgi referencing authcode that include shell metacharacters (raw or URL-encoded) in Sumo Logic web/proxy source categories, indicating CVE-2026-135792 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate email-authcode workflows using ampersand separators
- Authorized vulnerability scanners
- Red-team exercises
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.
- 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
- Test 2 Encoded pipe injection into user.cgi
Expected signal: Web access log with %7C (pipe) and 'whoami' in the user.cgi query string
- 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
- Confirm the destination host is a Panabit Smart Application Gateway (TANGr7p10) and that user.cgi is externally reachable.
- URL-decode the captured csUriQuery/uri_query and identify the injected command string and the parameter carrying the authcode request.
- Check the HTTP response status and size to determine whether the injected command executed (2xx with anomalous body) versus was blocked.
- Correlate the source IP against threat intel and prior failed/successful requests to user.cgi.
Containment
- Block the attacker source IP(s) at the perimeter firewall and restrict external access to user.cgi / the management interface.
- Isolate the affected gateway from untrusted networks pending vendor patch, applying an ACL that limits administrative access to trusted subnets.
Evidence Collection
- Preserve web server access/error logs and any CGI debug logs covering the request window.
- 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.
// 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) ``` 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
Sends an HTTP request mimicking the CVE-2026-135792 injection into the send_email_authcode path to validate web-log detection.
Command
curl -s -o /dev/null 'http://TARGET/cgi-bin/user.cgi?action=send_email_authcode&email=test%40test.com%3Bid' Cleanup
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.
Sends a URL-encoded pipe-to-command payload against user.cgi to validate decoded-payload matching.
Command
curl -s -o /dev/null 'http://TARGET/cgi-bin/user.cgi?action=send_email_authcode&email=a%40b.com%7Cwhoami' Cleanup
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.
Emulates a web/CGI process spawning a shell to validate endpoint process-execution detection.
Command
cp /bin/sh /tmp/httpd-sim && /tmp/httpd-sim -c 'id; whoami' Cleanup
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.