Running 2 accounts with a single email [Part 2]
A user could end up with two accounts sharing the same email address by adding and then removing a linked Google identity, which left the email attached to the wrong account. Logging in with that email and either password then produced an internal server error, indicating the account model was left in an inconsistent state.
- Triaged in 7 days
- Fixed in 9 days
- Disclosed after 4 months
Following the fix on #224072, I decided to try this in another way and it worked!
##Reproduction Steps
- Login with Github on Browser1 and set a password to it.
- With another email, signup on Weblate on Browser2
- In the new account on Browser2, do the following:
Confirm email and Set a Password Add a Google Account with the same email used to signup Github Now, disconnect the email used to signup So, it the email is default to same email on the other account
- Reload both browsers to confirm, https://hosted.weblate.org/accounts/profile/#account
- Logout any of the browsers
- Trying to login with the email and any of the set passwords pops an Internal Server Error
Accompanying screenshots are attached below.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the account-linking and email-disconnection flow did not check whether the email was already in use by another account, allowing a duplicate email to exist.
What the attacker needed
Two accounts; a GitHub account; a Google account sharing the email; ability to set and change passwords
How it was found
- Log in with GitHub in one browser and set a password on that account.
- In a second browser, sign up with a different email address.
- In the new account, confirm the email and set a password.
- Add a Google account that uses the same email as the GitHub account.
- Disconnect the original signup email so the account falls back to the shared email.
- Reload both profiles, log out of one, then try logging in with the shared email and either password.
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 report has not been written yet. The Original tab links to the source.
Websites usually assume each email address belongs to exactly one account. Here, by linking a Google login and then disconnecting the original email, the same email ended up on two accounts at once. When the site later tried to find which account to log into, it got confused and crashed with an error page.
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.