VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954) - Nessus

Critical   Plugin ID: 160182

This page contains detailed information about the VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 160182
Name: VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954)
Filename: vmware_workspace_one_access_cve-2022-22954.nbin
Vulnerability Published: 2022-04-06
This Plugin Published: 2022-04-25
Last Modification Time: 2022-04-26
Plugin Version: 1.4
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: vmware_workspace_one_access_web_detect.nbin
Required KB Items [?]: installed_sw/VMware Workspace ONE Access

Vulnerability Information


Severity: Critical
Vulnerability Published: 2022-04-06
Patch Published: 2022-04-06
CVE [?]: CVE-2022-22954
CPE [?]: cpe:/a:vmware:identity_manager, cpe:/a:vmware:workspace_one_access

Synopsis

An identity store broker application running on the remote host is affected by a remote code execution vulnerability.

Description

The VMware Workspace One Access (formerly VMware Identity Manager) application running on the remote host is affected by a remote code execution vulnerability due to server-side template injection. An unauthenticated, remote attacker can exploit this, via a specially crafted message, to execute arbitrary code on the remote host.

Solution

Apply the HW-154129 hotfix to VMware Workspace One Access / VMware Identity Manager as per the VMSA-2022-0011 advisory.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954) vulnerability:

  1. GitHub: https://github.com/3SsFuck/CVE-2022-22954-POC
    [CVE-2022-22954]
  2. GitHub: https://github.com/DrorDvash/CVE-2022-22954_VMware_PoC
    [CVE-2022-22954: PoC for CVE-2022-22954 - VMware Workspace ONE Access Freemarker Server-Side Template ...]
  3. GitHub: https://github.com/Jun-5heng/CVE-2022-22954
    [CVE-2022-22954: VMware Workspace ONE Access远程代码执行漏洞 / Code By:Jun_sheng]
  4. GitHub: https://github.com/MLX15/CVE-2022-22954
    [CVE-2022-22954: CVE-2022-22954 VMware Workspace ONE Access free marker SSTI]
  5. GitHub: https://github.com/MSeymenD/CVE-2022-22954-Testi
    [CVE-2022-22954: CVE-2022-22954 Açığı test etme]
  6. GitHub: https://github.com/Vulnmachines/VMWare_CVE-2022-22954
    [CVE-2022-22954: CVE-2022-22954 is a server-side template injection vulnerability in the VMware ...]
  7. GitHub: https://github.com/aniqfakhrul/CVE-2022-22954
    [CVE-2022-22954]
  8. GitHub: https://github.com/astraztech/vmware4shell
    [CVE-2022-22954: CVE 2022-22954 - VMWare Workspace ONE Acess SSTI]
  9. GitHub: https://github.com/axingde/CVE-2022-22954-POC
    [CVE-2022-22954: 提供单个或批量URL扫描是否存在CVE-2022-22954功能]
  10. GitHub: https://github.com/chaosec2021/CVE-2022-22954-VMware-RCE
    [CVE-2022-22954: CVE-2022-22954-VMware-RCE批量检测POC]
  11. GitHub: https://github.com/jax7sec/CVE-2022-22954
    [CVE-2022-22954: 提供批量扫描URL以及执行命令功能。Workspace ONE Access 模板注入漏洞,可执行任意代码]
  12. GitHub: https://github.com/kaanymz/2022-04-06-critical-vmware-fix
    [CVE-2022-22954: CVE-2022-22954, CVE-2022-22955,CVE-2022-22956, CVE-2022-22957, CVE-2022-22958, ...]
  13. GitHub: https://github.com/lucksec/VMware-CVE-2022-22954
    [CVE-2022-22954]
  14. GitHub: https://github.com/mumu2020629/-CVE-2022-22954-scanner
    [CVE-2022-22954]
  15. GitHub: https://github.com/nguyenv1nK/CVE-2022-22954
    [CVE-2022-22954: CVE-2022-22954 analyst]
  16. GitHub: https://github.com/sherlocksecurity/VMware-CVE-2022-22954
    [CVE-2022-22954: POC for VMWARE CVE-2022-22954]
  17. GitHub: https://github.com/tyleraharrison/VMware-CVE-2022-22954-Command-Injector
    [CVE-2022-22954: Proof of Concept for exploiting VMware CVE-2022-22954]
  18. GitHub: https://github.com/bewhale/CVE-2022-22954
    [CVE-2022-22954: CVE-2022-22954 VMware Workspace ONE Access freemarker SSTI 漏洞 命令执行、批量检测脚本、文件写入]
  19. GitHub: https://github.com/tunelko/CVE-2022-22954-PoC
    [CVE-2022-22954: VMware Workspace ONE Access and Identity Manager RCE via SSTI - Test script for ...]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2022-22954
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.7 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


The vmware_workspace_one_access_cve-2022-22954.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/vmware_workspace_one_access_cve-2022-22954.nbin
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\vmware_workspace_one_access_cve-2022-22954.nbin
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/vmware_workspace_one_access_cve-2022-22954.nbin

Go back to menu.

How to Run


Here is how to run the VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select VMware Workspace One Access / VMware Identity Manager Server-side Template Injection RCE (CVE-2022-22954) plugin ID 160182.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl vmware_workspace_one_access_cve-2022-22954.nbin -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a vmware_workspace_one_access_cve-2022-22954.nbin -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - vmware_workspace_one_access_cve-2022-22954.nbin -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state vmware_workspace_one_access_cve-2022-22954.nbin -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2022-A-0136
VMSA | VMware Security Advisory: See also: Similar and related Nessus plugins:
  • 159548 - VMware Workspace One Access / VMware Identity Manager Multiple Vulnerabilities (VMSA-2022-0011)
  • 44646 - VMware Host Agent Directory Traversal (VMSA-2009-0015)
  • 56958 - VMware vCenter Update Manager Directory Traversal (VMSA-2011-0014)
  • 95441 - VMware vRealize Operations Manager ver 6.x < 6.40 Suite API CollectorHttpRelayController RelayRequest Object DiskFileItem Deserialization DoS
  • 143574 - VMware Workspace One Access / VMware Identity Manager Command Injection Vulnerability (VMSA-2020-0027)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file vmware_workspace_one_access_cve-2022-22954.nbin version 1.4. For more plugins, visit the Nessus Plugin Library.

Go back to menu.