Protected Users: you thought you were safe uh?
The Protected Users group in Active Directory does not enforce its restrictions for the built-in Administrator account (RID 500). An attacker who obtains the NT hash of that account can still authenticate via Kerberos with RC4 and abuse Kerberos delegation, despite the account being in the Protected Users group.
Published on sensepost.com
On the 31st of October 2022, a PR on CrackMapExec from Thomas Seigneuret (@Zblurx) was merged. This PR fixed Kerberos authentication in the CrackMapExec framework.
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 RID 500 Administrator account is treated specially by Active Directory, so Protected Users restrictions on RC4 Kerberos pre-authentication and on delegation are not enforced for it.
Impact
An attacker with the NT hash of the RID 500 Administrator account could authenticate via Kerberos with RC4 and abuse Kerberos delegation, even if the account is in the Protected Users group.
What the attacker needed
NT hash of RID 500 Administrator; RID 500 account in Protected Users group; Ability to perform Kerberos authentication
The fix
To mitigate, set the account option 'Account is sensitive and cannot be delegated' for the RID 500 account, and consider disabling RC4 for the whole domain or disabling the RID 500 account, though these have drawbacks.
How it was found
- Add a domain administrator user to the Protected Users group and confirm NTLM and RC4 Kerberos authentication fail.
- Try Kerberos authentication as the RID 500 Administrator account (also in Protected Users) and observe it succeeds with RC4.
- Attempt RBCD delegation for a normal Protected User and see it fails because the service ticket lacks the forwardable flag.
- Attempt RBCD delegation for the RID 500 Administrator and see it succeeds because the forwardable flag is set.
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.
The Protected Users group is a Windows security feature that makes it harder to steal and reuse a user's password hash. This article shows that for the special built-in Administrator account, some of those protections are not applied, so an attacker who has the hash can still log in using a different authentication method.
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.