Kerberos Unconstrained Delegation Exploitation — Lateral Movement
A Windows Active Directory computer configured for Kerberos unconstrained delegation can capture the ticket-granting ticket of any user who authenticates to it. An attacker with local administrator access on that computer can extract the ticket and use it to impersonate the user, including a domain administrator, against other services.
These days I am quite interested in the CRTP (Certified Red Team Professional) certification made by Altered Security, coincidentally my friend named M Hendro also bought the certification and I was also shown by him what was learned in this CRTP certification (shown the course). I am quite interested in 1 material…
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 computer was configured with the 'Trust This Computer For Delegation To Any Service' option, which causes it to cache users' ticket-granting tickets, and the attacker had local administrator rights to read them from memory.
Impact
An attacker who has already gained local administrator access on a computer with unconstrained delegation could impersonate any user who authenticates to it, including a domain administrator, and use that access for lateral movement and remote code execution.
What the attacker needed
Local administrator on the delegated host; a privileged user authenticates to that host; unconstrained delegation enabled
The fix
Unconstrained delegation should be removed from computer accounts and replaced with constrained or resource-based constrained delegation, and privileged accounts should not authenticate to such hosts.
How it was found
- Configure a computer account in Active Directory to allow unconstrained delegation.
- On the compromised computer, run Rubeus in monitor mode to watch for incoming tickets.
- Trigger Kerberos authentication from a privileged user to that computer by accessing a Samba share.
- Capture the ticket-granting ticket shown in the Rubeus output.
- Use Rubeus to perform pass-the-ticket with the captured ticket.
- Access remote file shares and run remote PowerShell sessions as the impersonated user.
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, a feature called unconstrained delegation lets one computer keep a copy of a user's login ticket when that user connects to it. If an attacker already has administrator rights on that computer, they can steal the ticket and use it to act as the user elsewhere. The article shows this with a domain administrator's ticket, which gives broad access.
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.