PoC Monitor
← All CVEs
CVE-2021-21985published 26 May 2021 14:04 UTCData: JSON · API

VMware vCenter Server and VMware Cloud Foundation

VMware vCenter Server Improper Input Validation Vulnerability

The vSphere Client (HTML5) contains a remote code execution vulnerability due to lack of input validation in the Virtual SAN Health Check plug-in which is enabled by default in vCenter Server. A malicious actor with network access to port 443 may exploit this issue to execute commands with unrestricted privileges on the underlying operating system that hosts vCenter Server.

First public PoC 3 daysafter publication · 29 May 2021
Public PoCs97 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-20
CISA KEV 3 Nov 2021161 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150CVE published26 May 2021 · t = 0First public PoC29 May 2021 · t+3dAdded to CISA KEV3 Nov 2021 · t+161d

First public PoC 3 days after publication; added to CISA KEV 161 days after publication. First PoC: alt3kx/CVE-2021-21985_PoC (created 29 May 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

7 PoCs · 3 pending · 1 informational · 2 suspicious or fake

PoCs 7
RepositoryCreatedStarsAssessment
alt3kx/CVE-2021-21985_PoC 29 May 2021 +3 d 213 PoC
onSec-fr/CVE-2021-21985-Checker 1 Jun 2021 +5.8 d 2 Scanner
mauricelambert/CVE-2021-21985 1 Jun 2021 +6.2 d 0 PoC
xnianq/cve-2021-21985_exp 3 Jun 2021 +7.9 d 115 PoC
daedalus/CVE-2021-21985 4 Jun 2021 +8.5 d 2 PoC
sknux/CVE-2021-21985_PoC 9 Nov 2021 +167 d 3 PoC via PoC Index
zidanfanshao/vcenter_tools 11 Nov 2024 +3.5 y 70 PoC via PoC Index
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Pending 3
RepositoryCreatedStarsAssessment
haiclover/CVE-2021-21985 8 Jul 2021 +43 d 1 Pending · repository exceeds size limit via PoC Index
haidv35/CVE-2021-21985 8 Jul 2021 +43 d 1 Pending · repository exceeds size limit via PoC Index
r0ckysec/CVE-2021-21985 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 1
RepositoryCreatedStarsAssessment
bigbroke/CVE-2021-21985 27 May 2021 +12 h 1 Informational · detection
Suspicious or fake 2
RepositoryCreatedStarsAssessment
testanull/Project_CVE-2021-21985_PoC 5 Jun 2021 +9.9 d 28 Fake
aristosMiliaressis/CVE-2021-21985 11 Jul 2021 +46 d 0 Fake

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 9 PoC repos

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}\x0d\x0a= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:105

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:97

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:89

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}\x0d\x0a= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:74

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
$\x0d\x0a{\"methodInput\":[\"doLookup\"]}\x0d\x0a= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:82

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetObject

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:66

POST /ui/h5-vsan/rest/proxy/service/&vsanQueryUtil_setDataService{var}

Content-Type
application/json
PoC User-Agent
pentest
Seen in
1 repo: xnianq/cve-2021-21985_exp
Evidence
xnianq/cve-2021-21985_exp/cve-2021-21985.py:10

POST /ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabilityProvider/$2

Key headers
$connection: close $content-Type: application/json $host: $1 $user-Agent: attacker
Body markers
{var}]}\x0d\x0a= in application/x-www-form-urlencoded
Seen in
1 repo: sknux/CVE-2021-21985_PoC
Evidence
sknux/CVE-2021-21985_PoC/cve-2021-21985_PoC:9

POST /ui/h5-vsan/rest/proxy/service/com.vmware.vsan.client.services.capability.VsanCapabilityProvider/getClusterCapabilityData

Key headers
$connection: close $content-Type: application/json $host: {var} $user-Agent: alex666
Body markers
{var}]}\x0d\x0a= in application/x-www-form-urlencoded
Seen in
1 repo: alt3kx/CVE-2021-21985_PoC
Evidence
alt3kx/CVE-2021-21985_PoC/README.md:47

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke(?:[?#].*)?$
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare(?:[?#].*)?$
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments(?:[?#].*)?$
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod(?:[?#].*)?$
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod
(?i)^/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9212396; rev:1;)
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9262999; rev:1;)
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9429376; rev:1;)
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9772151; rev:1;)
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-21985 VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod"; http.header; content:"$connection: close"; nocase; http.header; content:"$content-Type: application/json"; nocase; http.header_names; content:"$host"; nocase; http.header; content:"$user-Agent: alex666"; nocase; http.request_body; content:"$|5c|x0d|5c|x0a{|5c||22|methodInput|5c||22|:[|5c||22|doLookup|5c||22|]}|5c|x0d|5c|x0a="; reference:url,poc.griffinguard.io/cve/CVE-2021-21985; classtype:web-application-attack; sid:9807096; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9212396
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/invoke'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.21985
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9262999
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/prepare'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.21985
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9429376
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setArguments'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.21985
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9772151
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setStaticMethod'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.21985
POST /ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod
title: VMware VMware vCenter Server and VMware Cloud Foundation exploit attempt (CVE-2021-21985)
id: gg-pocmon-cve-2021-21985-9807096
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21985. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-21985
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/ui/h5-vsan/rest/proxy/service/&vsanProviderUtils_setVmodlHelper/setTargetMethod'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.21985