How a Simple Email Casing Trick Led to Privilege Escalation (Admi
The system treated email addresses as case-sensitive, so an admin could invite their own email with different casing and bypass the duplicate check. By intercepting the invitation request, they could change the role from Admin to Owner and then accept the invite to gain Owner privileges without approval.
Published on medium.com
Hi, I’m Ahmed Mahmoud, a penetration tester on HackerOne. Today I’ll walk you through how I was able to escalate my privileges from Admin to Owner using a simple trick with email casing.
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 and stored email addresses case-sensitively, so the duplicate-invite check was bypassed, and it also failed to restrict the role that an admin could assign.
Impact
A non-owner Admin could escalate directly to Owner and gain full control of all team resources, leading to complete account/site takeover.
What the attacker needed
Admin-level access to a team account
The fix
The application should prevent admins from inviting users with roles higher than their own and should normalise email addresses to lowercase before comparing or storing them.
How it was found
- Log in as a Team Account Admin (not Owner).
- Try inviting your own email; the system shows an error because the email already exists.
- Send the invite again using the same email but with different letter casing to bypass the error.
- Intercept the invitation request and change the role from Admin to Owner.
- The invitation is sent successfully.
- Accept the invitation and log in again; the role is now Owner.
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.
Email addresses are normally not case-sensitive, so '[redacted]' and '[redacted]' should be the same. This system treated them as different, letting an admin send a second invite to themselves. By tampering with the invite request, they could set the role to Owner and then accept it, becoming an Owner without permission.
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.