Skip to content
Info disclosure Write-up Intermediate

Active Directory Compromise

An SMB share mirrored the SYSVOL tree and exposed a Group Policy Preferences file containing a cpassword value, which was decrypted with the publicly known static key to recover a service account password. That account could request a Kerberos service ticket for the domain Administrator, which was cracked offline, giving full domain admin access and a dump of all domain credential hashes.

Emmanuel Wiseman Follow

Published on emmanuelwiseman.medium.com

In modern enterprise environments, corporate threat actors rarely rely on simple software patches or unhandled kernel panics to achieve full domain compromise. Instead, they weaponize native protocol architecture, logical misconfigurations, and weak access controls.

Emmanuel Wiseman, on emmanuelwiseman.medium.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 a custom SMB share exposed the SYSVOL policy tree, and a Group Policy Preferences file stored a service account password using the well-known static cpassword key, while the service account also held a service principal name whose ticket could be cracked offline.

Impact

The tester obtained domain administrator credentials, read the user and root flags, and dumped all domain password hashes including krbtgt, which the text says allows a golden ticket for permanent domain admin access.

What the attacker needed

Network access to the domain controller; SMB null session allowed; readable Replication share; crackable service account password

The fix

The exposed share should be removed or restricted, Group Policy Preferences cpassword values should be replaced with managed service accounts or LAPS, and the service account password should be rotated and kept out of crackable wordlists.

How it was found

  1. Scan the host and identify the domain controller services on ports 53, 88, 389, 445 and 3268.
  2. List SMB shares with a null session and find the non-standard Replication share.
  3. Recursively download the Replication share and locate the Groups.xml policy file.
  4. Decrypt the cpassword value from the policy file to get the service account password.
  5. Authenticate as the service account and request a Kerberos service ticket for the Administrator account.
  6. Crack the service ticket offline with a wordlist to recover the Administrator password.

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.

A Windows domain controller is the central login server for a company network. A file share on it was readable without a password and contained a settings file where Windows had stored a password in a scrambled form that anyone can unscramble, because the scrambling key is public. With that password the tester got a login, then asked the domain for a ticket that proved the administrator's password, cracked it offline, and took over the whole domain.

What is Info disclosure?

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

More by Emmanuel Wiseman

View all

4 more disclosed reports, best first.

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.