Skip to content
Info disclosure Write-up Beginner

Find And Decrypt Gpp Password

A file named groups.xml inside the SYSVOL share of a domain controller contained a Group Policy Preferences password stored in a cpassword field. Because Microsoft published the AES key used for this encryption, an attacker with read access to the share could decrypt the password in plain text.

S12 - 0x12Dark Development Follow

Published on systemweakness.com

Welcome to this new article, today I am going to show you how to find and decrypt the GPP (Group Policy Preferences) password.

S12 - 0x12Dark Development, on systemweakness.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 password was stored using Group Policy Preferences encryption, whose AES key Microsoft published, so the ciphertext offers no real protection to anyone who can read the policy file.

Impact

Anyone with read access to the policy share could recover the stored password in plain text and use it to authenticate as that account.

What the attacker needed

Read access to a share mirroring SYSVOL; a Groups.xml containing a cpassword

The fix

Passwords should not be stored in Group Policy Preferences; such entries should be removed and the affected accounts' passwords rotated.

How it was found

  1. List the shared resources on the target machine
  2. Note that SYSVOL is not readable but a share called Replication is
  3. Browse the Replication share, which mirrors the SYSVOL structure
  4. Open the Policies folder and navigate down to the Groups.xml file
  5. Download the file and decrypt the cpassword value with gpp-decrypt

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.

Group Policy Preferences let administrators push settings, including passwords, to many Windows machines at once. Those passwords were encrypted with a key that Microsoft later published, so anyone who can read the policy files on a file share can turn the stored value back into the real password. The author found such a file on a shared folder and decrypted the password with a ready-made tool.

What is Info disclosure?

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

More by S12 - 0x12Dark Development

View all

13 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.