This module exploits CVE-2022-22960 which allows the user to overwrite the permissions of the certproxyService.sh script so that it can be modified by the horizon user. This allows a local attacker with the uid 1001 to escalate their privileges to root access.
Linux,Unix
cmd, x86, x64
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/local/vmware_workspace_one_access_cve_2022_22960
msf exploit(vmware_workspace_one_access_cve_2022_22960) > show targets
...targets...
msf exploit(vmware_workspace_one_access_cve_2022_22960) > set TARGET < target-id >
msf exploit(vmware_workspace_one_access_cve_2022_22960) > show options
...show and set options...
msf exploit(vmware_workspace_one_access_cve_2022_22960) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security