AD Security Research: Breaking Trust Transitivity
The author found that external non-transitive trusts in Active Directory can be abused to authenticate to any domain within the trusting forest, contrary to the intended restriction. An attacker with a low-privileged account in a trusted domain can obtain Kerberos tickets for services in other domains of the trusting forest, potentially elevating privileges.
Published on semperis.com
While playing with Kerberos tickets, I discovered an issue that allowed me to authenticate to other domains within an Active Directory (AD) forest across external non-transitive trusts. This means that there is in fact no such thing as a “non-transitive trust.” The term is at best misleading and offers systems…
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 Kerberos referral process allows a user from an external trusted domain to obtain a local TGT for the trusted domain, which can then be used to request referrals to other domains in the same forest, bypassing the non-transitive restriction.
What the attacker needed
Low-privileged account in trusted domain; external non-transitive trust configured
The fix
The only way to avoid the issue is to remove external trusts; if that is not possible, monitor for Windows event 4769 indicating a local TGT requested from an account in a different forest.
How it was found
- Obtain a TGT for an account in the external trusted domain (semperisaz.lab).
- Request a referral for the directly trusted domain (grandchild1.child1.semperis.lab).
- Use the referral to request a local TGT for the trusted domain.
- Use the local TGT to request a referral for another domain in the same forest (child1.semperis.lab).
- Use the referral to request service tickets for services in that domain.
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.
Active Directory (AD) is Microsoft's system for managing users and computers in a network. Trusts are like agreements between AD domains that let users from one domain log in to another. A 'non-transitive' trust is supposed to be limited to just the two domains involved, but the author found a way to use it to reach other domains in the same forest, which should not be allowed.
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.