How I Abused A Group Policy Object Gpo In Active Directory And How To Fix It
A user had WriteDacl, WriteOwner and GenericWrite permissions over a Group Policy Object, which could let an attacker modify the GPO and push malicious settings to domain computers. The text describes this as a privilege escalation path but does not demonstrate an actual exploit.
Published on infosecwriteups.com
Group Policy Objects (GPOs) are one of the most powerful features in Active Directory. They allow administrators to manage settings across computers and users.
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 GPO's access control list granted a non-administrative user write permissions (WriteDacl, WriteOwner, GenericWrite) that should have been restricted to trusted administrators.
Impact
An attacker with these permissions could potentially execute scripts, deploy scheduled tasks, add users to local Administrators, push registry changes and gain higher privileges across the domain, though the text only describes this as a possibility and does not show an actual exploit.
What the attacker needed
A domain user account with write permissions on a GPO; access to BloodHound or similar tooling; a GPO linked to an OU containing target computers
How it was found
- Collect Active Directory data with BloodHound.py as user bob.
- Import the collected ZIP file into BloodHound Community Edition.
- Use BloodHound to find that bob has WriteDacl, WriteOwner and GenericWrite over the Employees Policy GPO.
- On the Domain Controller, open Group Policy Management, go to the Employees Policy, then Delegation.
- Remove unnecessary permissions such as GenericWrite, WriteDacl and WriteOwner.
- Re-run BloodHound collection and re-import to verify the dangerous edges no longer appear.
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 Group Policy Object is a set of rules that a Windows domain controller sends to computers and users. If a normal user can change those rules, they can make every computer run their commands, which is like letting a regular employee rewrite the company handbook for everyone.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.