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.
Published on medium.com
cant wait to disclose how i was able to promote my self as organization admin account using application admin
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
- Log in to the app_admin account.
- Intercept the request sent when adding a collaborator.
- Change the role value in the request to admin.
- 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.