Complete Active Directory Takeover via AS-REP Roasting and Psexec
A domain user account was configured to not require Kerberos pre-authentication, allowing an attacker to request an authentication ticket and crack its encrypted portion offline to recover the password. With that password, the attacker dumped all domain password hashes and used the administrator hash to obtain a SYSTEM shell on the domain controller.
This attack shows how a single misconfigured user (user4) with no pre-auth can lead to full domain compromise using:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker with valid domain user credentials could escalate to full domain administrator and SYSTEM access on the domain controller.
What the attacker needed
Valid domain user credentials; network access to the domain controller
How it was found
- Enumerate valid domain usernames.
- Request AS-REP tickets for the enumerated users without providing a password.
- Crack the obtained AS-REP hash using a wordlist.
- Use the cracked credentials to dump domain password hashes.
- Use the Administrator NT hash with psexec to obtain a SYSTEM shell on the domain controller.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
In Windows networks, Kerberos is the system that proves who you are. Normally, a client must first prove it knows its password before the server sends a ticket. If that check is turned off for an account, anyone can ask for a ticket and take it home to guess the password offline. Once one password is cracked, the attacker can often reach more powerful accounts.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.