Skip to content
Access control Write-up Intermediate

Logic Bug : Privilege Escalation That Allow Me To Reducing an Ow

An administrator could invite the team owner using an email address that differed only in letter case, bypassing a check that prevented changing a higher-privileged user's role. When the owner accepted, their role was reduced to view-only, stripping their control over the team.

Ahmed Mahmoud Follow

Published on medium.com

Hi, I’m Ahmed Mahmoud, I work as a penetration tester at HackerOne, Today I will show you how I can reduce owner privileges to view only, So let’s start .

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 application compared email addresses case-sensitively when checking whether an invitee already had a higher-privileged account, so a case variant bypassed the restriction.

Impact

The team owner could no longer take any action, invite or remove members, or access anything, effectively losing control of the team.

What the attacker needed

Attacker has administrator role; victim is the team owner; owner accepts the invitation

How it was found

  1. Create an owner account and invite other accounts with different roles such as super administrator and administrator.
  2. Log in as the administrator; note that you cannot delete or modify roles for higher-privileged accounts like the owner.
  3. As the administrator, try to invite the owner as view-only; an error occurs.
  4. Bypass the error by changing the last letter of the owner's email to uppercase and sending the invite again.
  5. The owner accepts the invitation and their role is changed to view-only.

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, roles decide what you can do. The system tried to stop a lower-ranked admin from changing the owner's role, but it compared email addresses in a case-sensitive way. By changing one letter to uppercase, the admin tricked the system into treating it as a different address, so the invite went through and the owner lost their powers.

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 Ahmed Mahmoud

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.