Skip to content
Info disclosure Write-up Intermediate

A Path Hidden in Plain Sight: Owning Active Directory

The write-up describes a penetration test of a Windows Active Directory lab machine where anonymous LDAP binding exposed user and group listings, and one service account lacked Kerberos preauthentication, allowing its AS-REP hash to be requested and cracked offline. The author then uses the recovered credentials to continue towards domain compromise.

infosecwriteups.com

Published on infosecwriteups.com

This gives us our first look at what services the machine is exposing and where we might be able to start poking around.

Jabaribrown, on infosecwriteups.com

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 service account was configured with Kerberos preauthentication disabled, and LDAP allowed anonymous binding that revealed the account names needed to target it.

Impact

An attacker with network access could obtain a crackable credential hash for a service account and, once cracked, use it to log in and move further into the domain.

What the attacker needed

Network access to the domain controller; anonymous LDAP bind allowed; account without Kerberos preauth

How it was found

  1. Scan the host to find exposed services and the domain name.
  2. Try anonymous and guest SMB logins, which fail.
  3. Bind anonymously to LDAP and enumerate groups and users.
  4. Collect usernames into a list and request Kerberos tickets for each to find accounts without preauthentication.
  5. Crack the recovered AS-REP hash offline with Hashcat.

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 Windows networks use to manage users and computers. Some accounts can be asked for a login ticket without proving who you are first, and that ticket contains a value derived from the user's password that can be guessed offline. Here the tester found such an account and cracked its password.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.