Mass Account Lockout Using Organization Invites
An expired-trial organization could still send invitations, and the invitee was attached to the unpaid organization before accepting, which logged them out and blocked every later login. By also removing a seat-count field to exceed the seat cap, an attacker could lock out unlimited accounts without any victim interaction.
medium.com
Published on medium.com
While testing an organization-based application, I discovered a critical business logic flaw that allows an attacker to:
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 flow attached the invitee to the organization before acceptance and without checking that the plan was paid, and the seat-limit check trusted a client-supplied current seat count that could simply be omitted.
Impact
An attacker could lock any user, existing or new, out of the platform without victim interaction, and by bypassing the seat cap could do this at scale; the report does not show any defence limiting it.
What the attacker needed
An organization account; trial expired or unpaid plan; no victim interaction needed
How it was found
- Let the trial expire so the plan becomes unpaid and invitations are expected to be disabled.
- Send an organization invitation to an existing account and refresh that user's page.
- Observe the user is redirected to logout and every login attempt sends them back to logout.
- Send an invitation to an email with no account, then register normally without clicking any link.
- Observe the new account is redirected to logout after signup and cannot log in.
- Remove the current seat count field from the add-seats request and send a large extra-seats value to exceed the cap.
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.
An organization is a shared workspace with a paid plan and a limited number of member slots called seats. The site added a person to the workspace as soon as an invite was sent, even though the plan was unpaid, and the app then refused to let that person log in. The author also found that leaving out one number in the request let them add far more seats than allowed, so the lockout could be repeated on many people.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.