Skip to content
Race condition Write-up Intermediate

Unlimited Invites via Race Condition, invite limit bypass writeup

An invitation endpoint enforced its per-account invite limit only after the request was processed, so sending many invite requests in parallel let an admin create more accounts than the allowed limit of three. An attacker with the master admin role could therefore exceed the intended user cap and add extra accounts to the workspace.

medium.com

Published on medium.com

3 — Go back to the Master Admin Account then click Invite 4 — Write all account details (Email , role , first name , last name) and before click invite open the intercept then click invite 5 — Intercept this request then send it to the repeater and make Drop , refresh the Users page to make sure the invitation not…

Mohamed Mostafa (0xHafez), 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 invite count was checked and the invite created in separate steps without locking, so parallel requests all passed the check before any invite was counted.

What the attacker needed

Master admin account; ability to intercept requests; a tool to send parallel requests

How it was found

  1. Create a master admin account and invite one technical admin, then log in as that admin.
  2. Return to the master admin account and start an invite, filling in email, role and name.
  3. Intercept the invite request, drop it, and confirm on the users page that no invite was sent.
  4. Duplicate the intercepted request several times, changing the email and name in each copy.
  5. Send all the duplicated requests together in parallel.
  6. Use the sign-up links from the received emails to register each account, then refresh the users page as master admin to see more than three accounts.

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.

A race condition is when a program checks a rule and then acts, but two actions arrive so close together that both pass the check before either is recorded. Here the invite limit of three was checked, but many invite requests sent at the same moment all slipped through before the count was updated. The result is more accounts than the rule allows.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.