Skip to content
Access control Write-up Intermediate

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.

0xc4t Follow

Published on iam0xc4t.medium.com

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…

0xc4t, on iam0xc4t.medium.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 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

  1. Configure a computer account in Active Directory to allow unconstrained delegation.
  2. On the compromised computer, run Rubeus in monitor mode to watch for incoming tickets.
  3. Trigger Kerberos authentication from a privileged user to that computer by accessing a Samba share.
  4. Capture the ticket-granting ticket shown in the Rubeus output.
  5. Use Rubeus to perform pass-the-ticket with the captured ticket.
  6. 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.

More by 0xc4t

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.