Skip to content
Access control Write-up Intermediate

Bypassing Conditional Access policies that have a resource exclusion

A Conditional Access policy that applies to all resources but excludes one resource can be bypassed for other resources, and the documented mitigation does not work. An attacker could therefore reach resources the policy was meant to protect.

Dirk-jan Mollema Follow

Published on dirkjanm.io

There is a documented enforcement gap in Conditional Access policies that apply to “all resources” but have an exclusion for at least one resource. What is not documented, is that this gap is much larger than what one would expect, and that the documented mitigation doesn’t actually work.

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 policy engine treats a resource exclusion as weakening enforcement beyond the excluded resource, and the documented mitigation does not correct that behaviour.

Impact

An attacker could bypass Conditional Access controls and reach resources that the policy was intended to protect, though the text gives no exploitation detail.

What the attacker needed

Conditional Access policy with a resource exclusion; tenant not yet migrated to new behaviour

The fix

Microsoft is changing the legacy behaviour, and tenants not yet migrated can opt in to the new behaviour that fixes the issue.

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.

Conditional Access is a Microsoft Entra feature that decides who can sign in to which apps under which conditions. A policy set to cover 'all resources' with one exclusion is supposed to protect everything else, but the text says that protection can be skipped for other resources too. The documented workaround also fails, so admins must opt in to a new behaviour to close the gap.

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.