From Guest to Admin: Chaining Pre-Account Takeover with Privilege
The application allowed account access without email confirmation and exposed invitation IDs in a GraphQL response. An attacker could register with an invited user's email, use the leaked invitation ID to accept the invitation, and gain Admin privileges in the workspace.
Published 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 account creation process did not require email confirmation, and the GraphQL API exposed invitation IDs to users who should not see them.
Impact
An attacker could join a workspace with Admin privileges using their own email, then remove and re-invite the original email to fully take over the Admin role.
What the attacker needed
Attacker has a Guest account; Owner invites a user with Admin privileges; Attacker knows the invited email address
How it was found
- As a Guest, wait for the Owner to invite a user with Admin privileges.
- Sign up using the invited email address, exploiting the lack of email confirmation.
- Use Burp Suite to find the UserSettingsWorkspace GraphQL query in the response.
- Extract the invitation ID from the GraphQL response.
- Obtain the invitation acceptance mutation.
- Replace the authorization token with the new account's token and inject the invitation ID to accept the invitation.
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, the site should send a confirmation link to your email before letting you in. Here it let people in straight away, so anyone could claim an email address that had been invited but not yet registered. The site also leaked a secret invitation code in its data responses, which let the attacker join the workspace as an admin.
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.