Skip to content
Account takeover Write-up Intermediate

“Do Your Best, and Let Allah Do the Rest” led me to a Privilege Escalation Bug

An organisation platform allowed anyone to create an account with an unverified email address and then accept an invitation sent to that address, so a low-privilege member could register using a higher-privilege invitee's email and gain their role. An outsider could also pre-register guessed invitee emails and wait for invitations to arrive.

mrasg Follow

Published on medium.com

Hey, folks! This is a story about a privilege escalation vulnerability (or a pre-account takeover scenario) I stumbled upon.

Ahmed Samir Ghallab, 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 invitation acceptance flow trusted the email address on the account without requiring that the address had been verified.

Impact

A low-privilege member could escalate to a higher-privileged invited role, and an outsider could pre-register guessed employee emails and accept invitations across many organisations; the report was rated medium severity.

What the attacker needed

Ability to create an account; email verification not required; an invitation sent to a known email

How it was found

  1. Create an account on the organisation platform using an email address that has not been verified.
  2. Receive or wait for an invitation sent to that email address for an organisation.
  3. Open the invitation acceptance form and accept the invitation.
  4. Gain the role that was intended for the real owner of the invited email address.

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.

When a company invites someone by email, the site should check that the person really owns that email address before letting them join. Here it did not check, so anyone who knew or guessed the invited address could sign up with it and take the invitation meant for someone else. That gave them the invited person's access inside the organisation.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by mrasg

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.