Rough start
A low-privileged domain user had GenericAll rights over a computer object, enabling a resource-based constrained delegation attack to impersonate a domain admin. However, the attack could not be fully exploited because the environment used DirectAccess with IPv6 and Kerberos IPv6 SPNs were not enabled.
sensepost.com
Published on sensepost.com
Are you tired of working from home due to COVID? While this is quite a unique situation we find ourselves in, it also provides some fresh opportunities.
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 low-privileged user was granted GenericAll permissions over a computer object, allowing modification of its msDS-AllowedToActOnBehalfOfOtherIdentity attribute.
Impact
The attacker could impersonate a domain administrator and potentially gain full control of the target system, but the attack was not fully successful because Kerberos IPv6 service principal names were not enabled.
What the attacker needed
Low-privileged domain user credentials; GenericAll rights over a computer object; ability to create machine accounts; DirectAccess with IPv6
The fix
Implement the principle of least privilege in Active Directory and regularly audit ACLs.
How it was found
- The attacker obtained credentials for a low-privileged domain user.
- Using BloodHound, they found the user had GenericAll rights over a computer object named system_x.
- They created a new machine account (ocd) in Active Directory.
- They modified the msDS-AllowedToActOnBehalfOfOtherIdentity attribute of system_x to allow ocd to impersonate users.
- They used Rubeus to request a Kerberos ticket impersonating a domain admin for the cifs/system_x service.
- They attempted to access the target using its IPv6 address but encountered a Kerberos error because IPv6 SPNs were not enabled.
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.
In Windows networks, some users have special permissions over computer accounts. Here, a normal user could change settings on a computer to make it trust another computer they control, then pretend to be an administrator. But the network used a newer addressing scheme (IPv6) that the attack tool did not fully support, so the final step failed.
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.