How I Found My First $100 Bug — by Accident, with Two Accounts and a Race Condition
The sign-up flow allowed two accounts to be created with the same email address when two sign-up requests were sent almost simultaneously. An attacker could obtain two separate accounts sharing one email, potentially causing confusion in password resets or account recovery.
Published on medium.com
Today I will tell you how I earned my first 100$ bounty!!!……Without wasting any time, let’s start
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 backend did not atomically check-and-create the email entry or lacked proper locking or unique constraints at the right layer, so parallel requests both passed validation.
Impact
This could cause confusion and inconsistent behaviour for password resets, email-based authentication, or account recovery, and may lead to account takeover or information leakage if email checks are used inconsistently across flows.
What the attacker needed
Two browsers or sessions; ability to submit sign-up requests simultaneously
The fix
The email uniqueness should be enforced atomically using database constraints, transactions, or application-level locks, and assumptions should be validated across layers.
How it was found
- Open the application in two different browsers.
- Go to the sign-up page in both browsers.
- Fill in all details and use the same email address in both browsers.
- Click sign up at the same time in both browsers.
- Receive two verification emails and verify both.
- After verification, gain access to two different 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 happens when a system checks something and then acts on it, but another request can slip in between the check and the action. Here, the site checked whether an email was already used, but two requests arrived so close together that both passed the check before either created the account. This let the same email end up on two different accounts.
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.