Skip to content
Access control Write-up Intermediate

privilege escalation allow the app admin to add the user as organization admin (on Microsoft own…

An application admin could change the role value in the add-collaborator request to 'admin' and create a user with organisation-wide super admin privileges. The attacker could then accept the invite and gain full access to all applications and users in the organisation.

amitkhandebharad5 Follow

Published on medium.com

cant wait to disclose how i was able to promote my self as organization admin account using application admin

Amitkhandebharad, on 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 server trusted the role value supplied by the client when adding a collaborator and did not check that the caller was allowed to assign that role.

Impact

An app admin could escalate to organisation super admin and gain full access to all applications and users in the organisation.

What the attacker needed

An app_admin account; ability to intercept requests

How it was found

  1. Log in to the app_admin account.
  2. Intercept the request sent when adding a collaborator.
  3. Change the role value in the request to admin.
  4. Send the request and accept the invite from the invited account.

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.

A website had different permission levels, and a lower-level administrator was only meant to manage one app. By editing the role name sent when inviting someone, that admin could create a much more powerful account. Accepting the invite then gave them control over the whole organisation.

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.

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.