How NOT to use the PAM trust - Leveraging Shadow Principals for Cross Forest Attacks
The write-up describes a misconfigured Privileged Access Management (PAM) trust between two Active Directory forests, where shadow principals created in the bastion forest were not properly restricted. An attacker with control of the bastion forest could use these shadow principals to gain privileged access in the production forest.
labofapenetrationtester.com
Published on labofapenetrationtester.com
The original lives on labofapenetrationtester.com
We do not hold its text, 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 PAM trust was configured so that shadow principals in the production forest retained excessive privileges or were not scoped to the intended management role, allowing the bastion forest to escalate across the trust.
Impact
An attacker who compromises the bastion forest could leverage the shadow principals to access or escalate privileges in the production forest, undermining the intended separation between the two forests.
What the attacker needed
Control of the bastion forest; a configured PAM trust
The fix
The PAM trust should be configured so shadow principals are tightly scoped and removed when no longer needed, and the bastion forest should be treated as a high-value asset.
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 forests are separate security boundaries in a Windows network. A PAM trust lets one forest (the bastion) manage privileged accounts in another (production) by creating 'shadow principals' there. If those shadow principals are given too much power or are not cleaned up, someone who takes over the bastion forest can use them to reach the production forest.
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.