Skip to content
Access control Write-up Beginner

Unauthorized Privilege Escalation in Role Logic

An Admin could invite their own account as Owner, and the invite was accepted automatically without approval from an existing Owner. This let the Admin escalate to Owner and delete the organisation.

medium.com

Published on medium.com

Hello, I’m Ahmed Mahmoud. I work as a penetration tester on HackerOne.

Ahmed Mahmoud, 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 role-assignment logic did not check that only an existing Owner can grant the Owner role, and self-invitations were auto-accepted.

Impact

Any Admin could escalate to Owner without approval and delete the organisation, causing permanent data loss and service disruption.

What the attacker needed

An Admin account in an organisation; ability to invite users

How it was found

  1. Create a new organisation and invite a second user with the Admin role.
  2. Log in as the Admin user.
  3. Go to Add People and invite your own account again, this time as Owner.
  4. Observe that the invite is automatically accepted or the role is immediately updated without approval.
  5. As Owner, go to Organisation Settings and choose Delete Organisation.
  6. Confirm deletion and observe the organisation is removed.

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.

In many apps, an Admin can manage users but an Owner has full control, such as deleting the whole organisation. Here, the app let an Admin send an invitation to their own account with the Owner role, and that invitation was accepted straight away. So the Admin gained Owner powers without anyone approving 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.

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.