Detect Panabit Smart Application Gateway add_crontab Second-Order Code Injection (CVE-2026-135794) in Sumo Logic CSE
Detects exploitation of CVE-2026-135794, a post-authentication second-order (stored) code injection vulnerability in the add_crontab function of admin/cgi-bin/sac/ajax_sac_crontab in Panabit Smart Application Gateway TANGr7p10 (CVSS 8.6, CWE-74/CWE-94). An authenticated attacker submits a crafted crontab entry containing injected shell command syntax via the cmd parameter on the ajax_sac_crontab CGI endpoint. The payload is written unescaped into the persistent crontab.conf, then read and passed through eval by the root resident daemon sac_crontab roughly every 50 seconds, yielding command execution as root. The exploit has been publicly disclosed. Detection focuses on suspicious HTTP POST requests to the ajax_sac_crontab endpoint invoking add_crontab with injection metacharacters, followed by anomalous child-process spawning from the appliance's web or daemon lineage.
Based on Panabit sac/ajax_sac_crontab post-authentication second-order code injection write-up
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
Sumo Detection Query
// df00tech DF00-e5b1f395c9 · https://df00tech.com/detections/CVE-2026-135794 · licence: https://df00tech.com/detections/licence
_sourceCategory=*web* OR _sourceCategory=*proxy*
| where _raw matches "*/admin/cgi-bin/sac/ajax_sac_crontab*"
| where _raw matches "*add_crontab*"
| where _raw matches /(;|\||&&|\|\||`|\$\(|\$\{|%0[aA])/
| parse regex "(?<src_ip>\d+\.\d+\.\d+\.\d+)" nodrop
| count by src_ip, _sourceHost Sumo Logic search surfacing Panabit ajax_sac_crontab add_crontab requests containing command-injection metacharacters.
Data Sources
Required Tables
False Positives & Tuning
- Benign admin cron configuration containing shell operators.
- Authorized security testing traffic.
- Replayed inspection traffic from security tooling.
Other platforms for CVE-2026-135794
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 add_crontab command-injection POST
Expected signal: Web/proxy access log entry for /admin/cgi-bin/sac/ajax_sac_crontab POST containing add_crontab and injection characters.
- Test 2 Stored payload execution simulation
Expected signal: Process start of sh/bash/touch with a web- or daemon-lineage parent process.
- Test 3 Encoded newline injection probe
Expected signal: Web log entry with %0a / decoded newline inside the add_crontab parameter.
Response Playbook
Triage
- Confirm the targeted host is a Panabit Smart Application Gateway (TANGr7p10) and that the request reached /admin/cgi-bin/sac/ajax_sac_crontab with an add_crontab action.
- URL-decode the request body and inspect the crontab parameters for shell metacharacters (; | & `, $(), ${}, newline/%0a) indicating injected commands.
- Determine whether the request was authenticated and identify the account used. This is a post-authentication vulnerability, so review for compromised or shared admin credentials.
- Check whether the stored crontab entry has already been read by the sac_crontab daemon by correlating the injection timestamp with subsequent process-execution telemetry on the appliance.
Containment
- Isolate or restrict management-plane access to the Panabit appliance (ACL the admin interface to trusted jump hosts only) to stop further crontab writes.
- Remove the malicious entry from crontab.conf and restart or stop the sac_crontab daemon pending forensic capture.
- Rotate credentials for the admin account used in the request and any secrets reachable from the appliance.
Evidence Collection
- Preserve web/proxy access logs for /admin/cgi-bin/sac/ajax_sac_crontab including full request bodies and source IPs.
- Capture the appliance's crontab.conf, and any scripts or binaries dropped by the injected command.
- Collect process-execution and network-connection telemetry from the appliance around the injection and subsequent execution time.
Escalation Criteria
- !Escalate to incident response if process telemetry confirms the injected entry executed (shell, download tooling, or reverse shell spawned).
- !Escalate if the same source IP or account shows additional access to management endpoints or lateral movement from the appliance.
- !Escalate to the network/appliance owner and vendor if multiple appliances show the same add_crontab injection pattern.
Investigation Guide
Forensic Artifacts
- >
Appliance crontab.conf entries created via add_crontab - >
Web server access logs for /admin/cgi-bin/sac/ajax_sac_crontab with decoded POST bodies - >
Child processes spawned from httpd/nginx/sac_crontab lineage and any dropped files
Tuning Guidance
Establish an allowlist of administrative source IPs that legitimately configure scheduled tasks and exclude them from the metacharacter-based alert. If the appliance's own UI escapes certain operator characters in normal operation, tighten the regex to the specific injection patterns observed in your environment. Pair the HTTP-layer rule with the process-lineage correlation to suppress scanner noise that never results in execution.
Hunting Queries
Baseline all add_crontab requests to the ajax_sac_crontab endpoint by source to spot anomalous callers and burst activity.
// df00tech DF00-e5b1f395c9 · https://df00tech.com/detections/CVE-2026-135794 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/admin/cgi-bin/sac/ajax_sac_crontab" | extend d=url_decode(tostring(csUriQuery)) | where d has "add_crontab" | summarize count() by cIp, bin(TimeGenerated, 1h) ``` df00tech DF00-e5b1f395c9 · https://df00tech.com/detections/CVE-2026-135794 · licence: https://df00tech.com/detections/licence ```
index=web uri="*/admin/cgi-bin/sac/ajax_sac_crontab*" | eval p=urldecode(_raw) | search p="*add_crontab*" | stats count by src_ip, dest Atomic Red Team Tests
Sends a crafted POST to the ajax_sac_crontab endpoint with an add_crontab action carrying shell metacharacters to validate web-log detection (lab appliance or mock server only).
Command
curl -sk -X POST 'https://panabit.lab/admin/cgi-bin/sac/ajax_sac_crontab' --data 'action=add_crontab&name=test&cmd=echo hi; id > /tmp/pb_poc' -b 'session=LABTOKEN' Cleanup
rm -f /tmp/pb_poc Expected Telemetry
Web/proxy access log entry for /admin/cgi-bin/sac/ajax_sac_crontab POST containing add_crontab and injection characters.
Expected Detection
KQL/SPL web-log rules fire on add_crontab with metacharacters.
Simulates the root daemon's periodic read-and-eval of a crontab entry containing an injected command, to validate process-lineage detection.
Command
echo 'cmd=echo poc;touch /tmp/pb_cron_fire;#' >> /tmp/pb_crontab.conf && bash -c 'touch /tmp/pb_cron_fire' Cleanup
rm -f /tmp/pb_crontab.conf /tmp/pb_cron_fire Expected Telemetry
Process start of sh/bash/touch with a web- or daemon-lineage parent process.
Expected Detection
EQL/CQL process-lineage correlation flags shell spawn from the daemon lineage.
Sends an add_crontab request using URL-encoded newline (%0a) to inject an additional command line, testing decoder-aware detection.
Command
curl -sk -X POST 'https://panabit.lab/admin/cgi-bin/sac/ajax_sac_crontab' --data 'action=add_crontab&cmd=legit%0aid' -b 'session=LABTOKEN' Cleanup
echo 'no artifacts created' Expected Telemetry
Web log entry with %0a / decoded newline inside the add_crontab parameter.
Expected Detection
Detection decodes the body and matches the %0a injection pattern.