Skip to content
Account takeover Write-up Intermediate

⌛ Pending Invite Hijack — Takeover via Improper Identity Linking

A low-privileged Observer could change their own profile email to match a pending administrator invitation, then log in with that admin email and their own password. This gave full administrative access without needing the admin's inbox or credentials.

bassemwanies2002 Follow

Published on medium.com

I’m Bassem (AKA. satan11), a bug bounty hunter and aspiring penetration tester. I publish real-world writeups to help others learn from the bugs I find in live programs.

Bassemwanies, 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 profile update endpoint accepted a change to the email/login mapping without checking that the address was unverified or already tied to a pending invitation, so the login flow trusted the new mapping.

Impact

An Observer could take over a pending administrator account and escalate to full admin, with no inbox access needed; the text does not mention any defence that blocked it.

What the attacker needed

A low-privilege Observer account; an admin sends a pending invite; attacker can intercept requests

How it was found

  1. Notice the UI blocks email changes, then inspect the profile update request in an intercepting proxy.
  2. Observe the email appears twice in the request body, as email and login.
  3. As an organisation admin, invite an unregistered email as an administrator.
  4. As the low-privilege Observer, change the profile email to the pending invitation address.
  5. Log in with the invited admin email and the attacker's own password.
  6. Observe the invitation is marked verified without email verification.

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 you sign up, a site usually links your login name to your email address. Here the site let a normal user rewrite their email to an address that had a pending admin invite, and the login system then treated them as that invited admin. So a low-level user became an administrator just by editing their own profile.

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 bassemwanies2002

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.