AD Got Cooked: From SMB Enum to Azure AD Connect Abuse
An Active Directory domain controller allowed anonymous LDAP binds, letting an unauthenticated attacker enumerate all users, groups and detailed attributes. The exposed data revealed a service account tied to Azure AD Connect and its group membership, which the author then used as a path toward further privilege escalation.
Published on medium.com
more AD fun? yeah… this rabbit hole goes deeper than you think — I broke down even more abuse paths and misconfigs in my previous article, so definitely check that out if you’re trying to sharpen your edge.
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 the domain controller permitted anonymous LDAP binds and exposed sensitive directory attributes to unauthenticated users.
What the attacker needed
Network access to the domain controller; no credentials needed
The fix
Anonymous LDAP binds should be disabled and directory attribute reads restricted to authenticated users.
How it was found
- Scan the target to find open directory, SMB and remote management ports
- Try SMB null sessions and find share listing is denied
- Bind to LDAP anonymously to confirm unauthenticated access
- Enumerate all users and groups through the anonymous bind
- Loop over the usernames to pull full attributes for each account
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 Microsoft's system for managing users and computers in a company network. LDAP is the protocol used to look up information in it, and a 'bind' is simply logging in. Here the server let anyone look things up without a password, so the attacker could read the staff list and account details.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.