Skip to content
CVE-2026-135794 Google Chronicle · YARA-L

Detect Panabit Smart Application Gateway add_crontab Second-Order Code Injection (CVE-2026-135794) in Google Chronicle

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

YARA-L Detection Query

Google Chronicle (YARA-L)
yaral
// df00tech DF00-e5b1f395c9 · https://df00tech.com/detections/CVE-2026-135794 · licence: https://df00tech.com/detections/licence
rule panabit_sac_ajax_crontab_injection {
  meta:
    author = "Argus"
    description = "CVE-2026-135794 Panabit ajax_sac_crontab add_crontab stored code injection"
    severity = "CRITICAL"
  events:
    $e.metadata.event_type = "NETWORK_HTTP"
    $e.network.http.method = "POST"
    re.regex($e.target.url, `/admin/cgi-bin/sac/ajax_sac_crontab`)
    re.regex($e.network.http.referral_url, `add_crontab`) nocase
    re.regex($e.target.url, `(;|\||&&|\x60|\$\(|\$\{|%0[aA])`)
  condition:
    $e
}
critical severity medium confidence

Chronicle YARA-L rule matching HTTP POSTs to the Panabit ajax_sac_crontab endpoint invoking add_crontab with command-injection syntax.

Data Sources

Network TrafficWeb Proxy

Required Tables

NETWORK_HTTP

False Positives & Tuning

  • Admin scheduled-task creation with operator characters in command fields.
  • Authorized vulnerability scanning.
  • Security tooling replaying captured HTTP requests.

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.

  1. 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.

  2. Test 2 Stored payload execution simulation

    Expected signal: Process start of sh/bash/touch with a web- or daemon-lineage parent process.

  3. Test 3 Encoded newline injection probe

    Expected signal: Web log entry with %0a / decoded newline inside the add_crontab parameter.


Response Playbook

Triage

  1. 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.
  2. URL-decode the request body and inspect the crontab parameters for shell metacharacters (; | & `, $(), ${}, newline/%0a) indicating injected commands.
  3. 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.
  4. 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

  1. Isolate or restrict management-plane access to the Panabit appliance (ACL the admin interface to trusted jump hosts only) to stop further crontab writes.
  2. Remove the malicious entry from crontab.conf and restart or stop the sac_crontab daemon pending forensic capture.
  3. Rotate credentials for the admin account used in the request and any secrets reachable from the appliance.

Evidence Collection

  1. Preserve web/proxy access logs for /admin/cgi-bin/sac/ajax_sac_crontab including full request bodies and source IPs.
  2. Capture the appliance's crontab.conf, and any scripts or binaries dropped by the injected command.
  3. 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.

Hunting — KQL
kql
// 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)
Hunting — SPL
spl
``` 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

Test 1 Simulated add_crontab command-injection POST
linux

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

bash
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

bash
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.

Test 2 Stored payload execution simulation
linux

Simulates the root daemon's periodic read-and-eval of a crontab entry containing an injected command, to validate process-lineage detection.

Command

bash
echo 'cmd=echo poc;touch /tmp/pb_cron_fire;#' >> /tmp/pb_crontab.conf && bash -c 'touch /tmp/pb_cron_fire'

Cleanup

bash
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.

Test 3 Encoded newline injection probe
linux

Sends an add_crontab request using URL-encoded newline (%0a) to inject an additional command line, testing decoder-aware detection.

Command

bash
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

bash
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.

Related Detections