Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792)
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
Vulnerability Intelligence
TheoreticalTimeline
- Disclosed
- November 24, 2026
CVSS
What is CVE-2026-135792 Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792)?
Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792) (CVE-2026-135792) 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 Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792), covering the data sources and telemetry it touches: IIS/Web Proxy Logs, Network Gateway Logs. 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
// df00tech DF00-ee0cf1cdc2 · https://df00tech.com/detections/CVE-2026-135792 · licence: https://df00tech.com/detections/licence
let cmdChars = dynamic([";", "|", "&", "`", "$(", "%3B", "%7C", "%26", "%60", "$(", "||", "&&"]);
let suspiciousCmds = dynamic(["wget", "curl", "nc ", "ncat", "/bin/sh", "/bin/bash", "busybox", "id;", "cat /etc", "whoami"]);
W3CIISLog
| where csUriStem has "user.cgi"
| extend decodedQuery = url_decode(csUriQuery)
| where csUriQuery has_any (cmdChars) or decodedQuery has_any (cmdChars) or decodedQuery has_any (suspiciousCmds)
| where csUriStem has "send_email_authcode" or csUriQuery has "send_email_authcode" or decodedQuery has "send_email_authcode" or csUriQuery has "authcode"
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, decodedQuery, scStatus, sSiteName, Computer
| order by TimeGenerated desc Flags HTTP requests to user.cgi that reference send_email_authcode/authcode and carry shell metacharacters or command keywords (raw or URL-decoded), indicating OS command injection attempts against CVE-2026-135792.
Data Sources
Required Tables
False Positives
- Legitimate password-reset/email-authcode requests that happen to contain encoded ampersands as parameter separators
- Security scanners and authorized vulnerability assessments probing the appliance
- Penetration testing engagements targeting the gateway
Query fingerprint DF00-ee0cf1cdc2 · licence
Sigma logsource & community rules
The detection logic for Panabit Smart Application Gateway user.cgi send_email_authcode Unauthenticated OS Command Injection (CVE-2026-135792) (CVE-2026-135792) 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:
Platform-specific guides 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.
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040