Rapid7 Vulnerability & Exploit Database

VMware vCenter Server Unauthenticated OVA File Upload RCE

Back to Search

VMware vCenter Server Unauthenticated OVA File Upload RCE

Disclosed
02/23/2021
Created
03/08/2021

Description

This module exploits an unauthenticated OVA file upload and path traversal in VMware vCenter Server to write a JSP payload to a web-accessible directory. Fixed versions are 6.5 Update 3n, 6.7 Update 3l, and 7.0 Update 1c. Note that later vulnerable versions of the Linux appliance aren't exploitable via the webshell technique. Furthermore, writing an SSH public key to /home/vsphere-ui/.ssh/authorized_keys works, but the user's non-existent password expires 90 days after install, rendering the technique nearly useless against production environments. You'll have the best luck targeting older versions of the Linux appliance. The Windows target should work ubiquitously.

Author(s)

  • Mikhail Klyuchnikov
  • wvu <wvu@metasploit.com>
  • mr_me
  • Viss

Platform

Linux,Windows

Architectures

java

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/http/vmware_vcenter_uploadova_rce
msf exploit(vmware_vcenter_uploadova_rce) > show targets
    ...targets...
msf exploit(vmware_vcenter_uploadova_rce) > set TARGET < target-id >
msf exploit(vmware_vcenter_uploadova_rce) > show options
    ...show and set options...
msf exploit(vmware_vcenter_uploadova_rce) > 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

;