Rapid7 Vulnerability & Exploit Database

Active Directory Certificate Services (ADCS) privilege escalation (Certifried)

Back to Search

Active Directory Certificate Services (ADCS) privilege escalation (Certifried)

Created
01/27/2023

Description

This module exploits a privilege escalation vulnerability in Active Directory Certificate Services (ADCS) to generate a valid certificate impersonating the Domain Controller (DC) computer account. This certificate is then used to authenticate to the target as the DC account using PKINIT preauthentication mechanism. The module will get and cache the Ticket-Granting-Ticket (TGT) for this account along with its NTLM hash. Finally, it requests a TGS impersonating a privileged user (Administrator by default). This TGS can then be used by other modules or external tools.

Author(s)

  • Oliver Lyak
  • CravateRouge
  • Erik Wynter
  • Christophe De La Fuente

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/dcerpc/cve_2022_26923_certifried
msf auxiliary(cve_2022_26923_certifried) > show actions
    ...actions...
msf auxiliary(cve_2022_26923_certifried) > set ACTION < action-name >
msf auxiliary(cve_2022_26923_certifried) > show options
    ...show and set options...
msf auxiliary(cve_2022_26923_certifried) > 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

;