Skip to content
Access control Write-up Intermediate

The 403 That Wasn’t: How I Ended Up Accessing 100K Azure AD Users : My Microsoft Research Story

A restricted account was shown a 403 Forbidden page in the Users section, but the application's client-side permission check could be bypassed by dropping that validation request in an intercepting proxy. The application then continued loading and exposed a directory of over 64,000 Azure AD users plus 40,000 deleted users, with the ability to view account details and export the full directory.

Abdelkader Mouaz Follow

Published on hamzadzworm.medium.com

Today I want to share one of the most interesting reports I’ve ever submitted to the Microsoft Security Response Center (MSRC). Even though the report was ultimately classified as “Not a Vulnerability,” I think the research process itself is worth sharing.

Hamzadzworm, on hamzadzworm.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 authorisation decision was enforced only by a client-side permission check, so the server returned the user directory regardless of whether that check succeeded.

Impact

A restricted account could browse and export directory data for more than 64,000 Azure AD users and 40,000 deleted users, though Microsoft classified the report as not a vulnerability.

What the attacker needed

Invitation to a private programme; Microsoft credentials for a restricted account; an intercepting proxy

The fix

The server should enforce the authorisation check itself and refuse to return directory data to accounts that are not permitted, rather than relying on a client-side validation request.

How it was found

  1. Log in to the Microsoft service with the provided account and open the Users section, which returns 403 Forbidden.
  2. Inspect the requests the application makes, one by one.
  3. Identify the permission validation request.
  4. Drop that request in an intercepting proxy.
  5. Observe the application continue loading and display the user directory.

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.

Some web apps check whether you are allowed to see something by asking the server a question, then hiding the page if the answer is no. Here the hiding happened in the browser, so the person could simply stop that question from being sent and the page appeared anyway. The server should have refused to send the data itself, rather than trusting the browser to hide it.

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 Abdelkader Mouaz

View all

6 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.