VMware vCenter — 3 vulnerability checks

noctis ships 3 vulnerability checks for VMware vCenter, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

VMware vCenter Server Arbitrary File Upload

CVECVE-2021-22005
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/vcenter-vsan/CVE-2021-22005.yaml

Tests VMware vCenter Server for the unauthenticated arbitrary file upload in the Analytics (CEIP) service. The probe confirms the host is vCenter via the vSphere landing page, then posts to /analytics/telemetry/ph/api/hyper/send: a vulnerable server accepts the upload with HTTP 201 and an empty body, while a patched server rejects it.

How noctis detects it

  1. HTTP(S) request GET /
  2. HTTP(S) request POST /analytics/telemetry/ph/api/hyper/send?_c=noctis-probe&_i=noctis-probe with a crafted body
  3. Checks root_resp.body for VMware vSphere → finding QoD 75: Unauthenticated analytics upload accepted — POST /analytics/telemetry/ph/api/hyper/send returned HTTP … with empty body on VMware vSphere h…

References:

Feed source — tests/vulnerabilities/vcenter-vsan/CVE-2021-22005.yaml
# VMware vCenter Server Arbitrary File Upload — CVE-2021-22005
#
# The vCenter Server Analytics (CEIP) service exposes an unauthenticated endpoint
# at /analytics/telemetry/ph/api/hyper/send that accepts arbitrary uploads. A
# crafted request writes attacker-controlled files to disk, which can be chained
# to remote code execution as the vsphere-ui user (KEV, known ransomware use).
#
# Affected: vCenter Server 6.5 < 6.5 U3q, 6.7 < 6.7 U3o, 7.0 < 7.0 U2c.
#
# Detection (safe):
#   1. GET /                                    -> 200 + body contains "VMware vSphere"
#   2. POST /analytics/telemetry/ph/api/hyper/send?_c=..&_i=..
#                                               -> 201 Created + empty body
#   The empty 201 is the genuine upload-accepted signal of the vulnerable CEIP
#   handler; a patched vCenter rejects the request (no 201). This mirrors the
#   ProjectDiscovery Nuclei template and the Metasploit detection logic and is
#   reproducible against a real vulnerable vCenter.
#
uid: 51d99865-c270-47b6-b9b4-e5fe080c9c42
name: "VMware vCenter Server Arbitrary File Upload (CVE-2021-22005)"
description: |
  Tests VMware vCenter Server for the unauthenticated arbitrary file upload in the
  Analytics (CEIP) service. The probe confirms the host is vCenter via the vSphere
  landing page, then posts to /analytics/telemetry/ph/api/hyper/send: a vulnerable
  server accepts the upload with HTTP 201 and an empty body, while a patched server
  rejects it.
cves: [CVE-2021-22005]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [vmware, vcenter, analytics, ceip, file-upload, rce, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-22005"
  - "https://www.vmware.com/security/advisories/VMSA-2021-0020.html"
  - "https://github.com/Schira4396/VcenterKiller"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22005.yaml"

steps:
  # ── Step 1: confirm the target is VMware vSphere / vCenter ────────────────
  - id: landing-probe
    action: http_request
    method: GET
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: root_resp

  # ── Step 2: probe the unauthenticated analytics upload endpoint ──────────
  # A vulnerable CEIP service accepts the upload and returns 201 with an empty
  # body; a patched vCenter rejects the request (404/401), so status != 201.
  - id: upload-probe
    action: http_request
    method: POST
    path: "/analytics/telemetry/ph/api/hyper/send?_c=noctis-probe&_i=noctis-probe"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "application/json"
    body: '{"noctis":"detect"}'
    store_as: upload_resp

  # ── Match: VMware landing page + 201 empty upload response ───────────────
  - id: upload-match
    action: match
    source: root_resp.body
    pattern: "VMware vSphere"
    condition: "root_resp.status == 200 && upload_resp.status == 201 && upload_resp.body == \"\""
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 75
        evidence: "Unauthenticated analytics upload accepted — POST /analytics/telemetry/ph/api/hyper/send returned HTTP {{upload_resp.status}} with empty body on VMware vSphere host"
      stop: true

VMware vCenter Server vSAN Pre-Auth RCE

CVECVE-2021-21985
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionhttp_request, match · highest QoD 50
Feedtests/vulnerabilities/vcenter-vsan/CVE-2021-21985.yaml

Tests VMware vCenter Server for unauthenticated access to the vSAN Health Check plugin endpoint. A vulnerable server returns HTTP 200 with a JSON result object for the VsanCapabilityProvider probe; a patched server returns HTTP 401.

How noctis detects it

  1. HTTP(S) request POST /ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabi… with a crafted body
  2. Checks vsan_resp.body for \{"result":\{"isDisconnected": → finding QoD 50: vSAN capability endpoint accessible without auth — HTTP 200: …

References:

Feed source — tests/vulnerabilities/vcenter-vsan/CVE-2021-21985.yaml
# VMware vCenter Server Pre-Auth RCE via vSAN Health Check Plugin — CVE-2021-21985
#
# The vSphere Client HTML5 interface proxies REST calls to internal vSAN service
# provider classes via /ui/h5-vsan/rest/proxy/service/. The VsanCapabilityProvider
# endpoint accepts a ClusterComputeResource with no authentication required.
# Sending a null value triggers class instantiation leading to SYSTEM-level RCE.
#
# Affected: vCenter 6.5 < 6.5 U3p, 6.7 < 6.7 U3n, 7.0 < 7.0 U2b; Cloud Foundation 3.x/4.x
#
# Detection (safe):
#   POST the capability probe with Content-Type: application/json.
#   Vulnerable: HTTP 200 + body contains {"result":{"isDisconnected":
#   Patched / non-VMware: HTTP 401
#
uid: f9d739aa-fc25-4147-bcbd-3adfa1fe1f9a
name: "VMware vCenter Server vSAN Pre-Auth RCE (CVE-2021-21985)"
description: |
  Tests VMware vCenter Server for unauthenticated access to the vSAN Health Check
  plugin endpoint. A vulnerable server returns HTTP 200 with a JSON result object
  for the VsanCapabilityProvider probe; a patched server returns HTTP 401.
cves: [CVE-2021-21985]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.20
tags: [vmware, vcenter, vsan, pre-auth, rce, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-21985"
  - "https://www.vmware.com/security/advisories/VMSA-2021-0010.html"
  - "https://github.com/alt3kx/CVE-2021-21985_PoC"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21985.yaml"

steps:
  # ── Probe the vSAN capability endpoint without authentication ─────────────
  # A vulnerable vCenter returns 200 with a JSON result object.
  # A patched vCenter returns 401 Unauthenticated.
  - id: vsan-probe
    action: http_request
    method: POST
    path: "/ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabilityProvider/getClusterCapabilityData"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "application/json"
    body: '{"methodInput":[{"type":"ClusterComputeResource","value":null,"serverGuid":null}]}'
    store_as: vsan_resp

  - id: vsan-match
    action: match
    source: vsan_resp.body
    # Unique JSON key returned by the vSAN capability provider — not present in non-VMware responses
    pattern: "\\{\"result\":\\{\"isDisconnected\":"
    condition: "vsan_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 50
        evidence: "vSAN capability endpoint accessible without auth — HTTP 200: {{vsan_resp.body}}"
      stop: true

VMware vSphere Client vropspluginui Unauthenticated Exposure

CVECVE-2021-21972
Severitycritical · CVSS 9.8
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/vcenter-vsan/CVE-2021-21972.yaml

Detects VMware vCenter Server builds that expose the vSphere Client vRealize Operations plugin upload servlet (/ui/vropspluginui/rest/services/uploadova) without authentication. A vulnerable server reaches the servlet and returns its HTTP 405 method-not-allowed error for a benign GET; a patched server returns 401 (auth required) or 404 (plugin removed). No file is uploaded and no exploitation is attempted.

How noctis detects it

  1. HTTP(S) request GET /ui/vropspluginui/rest/services/uploadova
  2. Checks ova_resp.body for method GET is not supported by this URL → finding QoD 75: vropspluginui upload servlet reachable without auth — HTTP …: …

References:

Feed source — tests/vulnerabilities/vcenter-vsan/CVE-2021-21972.yaml
# VMware vSphere Client vropspluginui Unauthenticated Endpoint Exposure — CVE-2021-21972
#
# The vSphere Client (HTML5) ships a vRealize Operations plugin whose servlet
# /ui/vropspluginui/rest/services/uploadova is reachable WITHOUT authentication on
# affected vCenter Server builds. The flaw (an unauthenticated OVA upload leading to
# arbitrary file write / RCE) is confirmed here only by DETECTION — we never upload an
# OVA, never write a file and never attempt a shell. Instead we send a benign GET to the
# upload servlet and distinguish the two response shapes:
#   Vulnerable:  the servlet is reached without auth and answers with its own method-not-
#                allowed error (HTTP 405, "... method GET is not supported by this URL"),
#                proving the endpoint is exposed pre-authentication.
#   Patched:     the request is rejected before the servlet (HTTP 401) or the plugin is
#                gone (HTTP 404).
#
# Affected: vCenter Server 6.5 < 6.5 U3n, 6.7 < 6.7 U3l, 7.0 < 7.0 U1c; Cloud Foundation.
#
uid: 7682e207-28bc-4c30-9d92-e662a49e026e
name: "VMware vSphere Client vropspluginui Unauthenticated Exposure (CVE-2021-21972)"
description: |
  Detects VMware vCenter Server builds that expose the vSphere Client vRealize
  Operations plugin upload servlet (/ui/vropspluginui/rest/services/uploadova) without
  authentication. A vulnerable server reaches the servlet and returns its HTTP 405
  method-not-allowed error for a benign GET; a patched server returns 401 (auth required)
  or 404 (plugin removed). No file is uploaded and no exploitation is attempted.
cves: [CVE-2021-21972]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.25
tags: [vmware, vcenter, vsphere, vropspluginui, pre-auth, exposure, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-21972"
  - "https://www.vmware.com/security/advisories/VMSA-2021-0002.html"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-21972.yaml"

steps:
  # ── Benign GET of the plugin upload servlet, no authentication ────────────
  # Vulnerable: the servlet is reached pre-auth and rejects GET with its own 405.
  # Patched:    the request never reaches the servlet (401) or the plugin is gone (404).
  - id: ova-probe
    action: http_request
    method: GET
    path: "/ui/vropspluginui/rest/services/uploadova"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: ova_resp

  - id: ova-match
    action: match
    source: ova_resp.body
    # Genuine servlet method-not-allowed message — only emitted once the request has
    # reached the unauthenticated upload servlet (real Tomcat/servlet 405 wording).
    pattern: "method GET is not supported by this URL"
    condition: "ova_resp.status == 405"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "vropspluginui upload servlet reachable without auth — HTTP {{ova_resp.status}}: {{ova_resp.body}}"
      stop: true

View these feeds on GitHub