️how Anonymous Ldap Enumeration Led To As Rep Roasting And Domain Compromise
A user account on the domain had Kerberos preauthentication disabled, so an attacker could request a crackable ticket hash for it without any password. After cracking the hash offline, the attacker logged in over WinRM, found stored service credentials, and used them to reach a domain account with rights over the domain.
Published on infosecwriteups.com
As I continue preparing for the CRTP, I’ve begun incorporating external resources beyond the course material to strengthen my understanding of Active Directory (AD) enumeration. My goal is to become comfortable identifying and abusing AD features without relying solely on automated tooling.
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
Root cause
Likely an account was configured without Kerberos preauthentication and used a weak, dictionary-crackable password, with further credentials stored insecurely on the host.
Impact
An attacker could obtain a valid domain user's password, log in remotely, recover stored service credentials and move toward full domain compromise.
What the attacker needed
Network access to the domain controller; a list of likely usernames; one account without preauthentication; a weak password in a wordlist
The fix
Kerberos preauthentication should be re-enabled for the account, its password should be strong and unique, and credentials should not be stored in plain text on hosts.
How it was found
- Browse the public website and collect employee names from the team page
- Scan the host to find exposed services including LDAP and WinRM
- Try an anonymous LDAP bind, which is refused
- Generate likely usernames from the collected names
- Request a ticket for each username without a password and capture the hash for the account that returns one
- Crack the hash offline with a wordlist, then log in over WinRM and enumerate for stored credentials
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.
Active Directory is the system many companies use to manage users and computers. Normally, when you log in, the server first asks you to prove who you are before handing out a ticket; if that check is switched off for an account, anyone can ask for the ticket and try to guess the password offline. Here the guessed password was weak, so the attacker got in and found more passwords stored on the machine.
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.