Skip to content
Access control Write-up Advanced

One Token to rule them all - obtaining Global Admin in every Entra ID tenant via Actor tokens

Undocumented impersonation tokens used by Microsoft for service-to-service communication could be used against the legacy Azure AD Graph API, which failed to validate the originating tenant. An attacker could therefore obtain Global Admin access in any Entra ID tenant.

Dirk-jan Mollema Follow

Published on dirkjanm.io

While preparing for my Black Hat and DEF CON talks in July of this year, I found the most impactful Entra ID vulnerability that I will probably ever find. This vulnerability could have allowed me to compromise every Entra ID tenant in the world (except probably those in national cloud deployments1).

Dirk-jan Mollema, on dirkjanm.io

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 legacy Azure AD Graph API trusted Actor tokens without checking that the token came from the same tenant as the target.

Impact

An attacker could compromise every Entra ID tenant worldwide, gaining Global Admin access, except probably tenants in national cloud deployments.

What the attacker needed

Access to an Actor token; target uses legacy Azure AD Graph API

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.

Entra ID is Microsoft's cloud service for managing users and logins. Microsoft's own backend services use special tokens to talk to each other, and these tokens were not meant to be used by outsiders. A flaw in an older Microsoft API meant it accepted these tokens from any tenant, so someone who got hold of one could take over any organisation's account.

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 Dirk-jan Mollema

View all

2 more disclosed reports, 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.