Rapid7 Vulnerability & Exploit Database

VMware vCenter Extract Secrets from vmdir / vmafd DB File

Back to Search

VMware vCenter Extract Secrets from vmdir / vmafd DB File

Disclosed
05/10/2022
Created
06/13/2022

Description

Grab certificates from the vCenter server vmdird and vmafd database files and adds them to loot. The vmdird MDB database file can be found on the live appliance under the path /storage/db/vmware-vmdir/data.mdb, and the DB vmafd is under path /storage/db/vmware-vmafd/afd.db. The vmdir database contains the IdP signing credential, and vmafd contains the vCenter certificate store. This module will accept either file from a live vCenter appliance, or from a vCenter appliance backup archive; either or both files can be supplied.

Author(s)

  • npm <npm@cesium137.io>

Platform

Linux

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 auxiliary/admin/vmware/vcenter_offline_mdb_extract
msf auxiliary(vcenter_offline_mdb_extract) > show actions
    ...actions...
msf auxiliary(vcenter_offline_mdb_extract) > set ACTION < action-name >
msf auxiliary(vcenter_offline_mdb_extract) > show options
    ...show and set options...
msf auxiliary(vcenter_offline_mdb_extract) > run 

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

;