
An unauthenticated attacker can trigger a remote code execution as root against the vIDM appliance. Additionally, an attacker can send a specially crafted link to a victim operator that when clicked, can achieve remote code execution as root against the vIDM appliance.
The vulnerabilities in this exploit take advantage of the default configuration of VMWare Workspace ONE Access
This repo contains two different exploits for leveraging two different techniques of exploitation:
The PostgreSQL attack technique has an added advantage that it doesn't require Java deserialization gadget for exploitation (even though one exists by default). As an additional advantage, you can use the licensecheck-1.1.5.jar library to trigger a deserialization in the com.vmware.licensecheck.LicenseChecker class so that an out-of-band attack isn't required. Please see the specific poc for that technique.
The 4th vulnerability abused in this exploit is similar to CVE-2020-4006 which was used in the wild. The advantage in this exploit is that:
X-Vk header is expected and validated from the incoming request.This exploit uses 5 vulnerabilities to achieve a 0-click and 1-click remote code execution which will be detailed below.
OAuth2TokenResourceController ACS Authentication Bypass (CVE-2022-22956)
CVSS: 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) This vulnerability allows a remote, unauthenticated attacker to bypass the authentication mechanism and execute any operation.
BrandingResource getBranding Information Disclosure (CVE-2022-22961)
CVSS: 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) This vulnerability allows a remote, unauthenticated attacker to leak the hostname of the target system which can be used to target victims in a client-side attack scenario.
DBConnectionCheckController dbCheck Cross Site Request Forgery (CVE-2022-22959)
CVSS: 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) This vulnerability allows an attacker to induce users to validate an arbitrary JDBC uri's that they didn't intend to.
DBConnectionCheckController dbCheck JDBC Injection Remote Code Execution (CVE-2022-22957)
CVSS: 9.1 (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H) This vulnerability allows an attacker to deserialize arbitrary Java objects which can allow remote code execution.
publishCaCert and gatherConfig Privilege Escalation (CVE-2022-22960)
CVSS: 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) This vulnerability allows a local attacker with the uid 1001 to escalate their privileges to root access.
Attacking server-side using the PostgreSQL JDBC driver exploit:

Attacking client-side using the MySQL JDBC driver exploit:
