Skip to content
Race condition Write-up Beginner

How I Registered the Same Username Twice — No Tools Needed

The website allowed two accounts to be created with the same username (or same email) by submitting sign-up forms simultaneously in two browsers. An attacker could create duplicate accounts, leading to conflicting ownership and potential data integrity issues.

medium.com

Published on medium.com

I’m back with another eye-opening discovery This is another part of my “Finding Bugs Without Tools” series.— this time about how some websites accidentally let you create two accounts with the same username. Sounds impossible?

StrangeRwhite, 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 application stores registration data temporarily and only checks for duplicate usernames or emails after OTP verification, not before or during the OTP step.

Impact

An attacker could create duplicate accounts with the same username or email, causing conflicting ownership and potential data integrity issues.

What the attacker needed

Two browsers or incognito windows; access to sign-up page; valid email addresses for OTP

The fix

The application should enforce uniqueness checks for usernames and emails before or during the OTP step, not only after verification.

How it was found

  1. Open two different browsers or incognito windows.
  2. Go to the sign-up page in both.
  3. Enter the same username but different emails.
  4. Submit the sign-up forms at almost the same time.
  5. Receive and verify both OTPs in their respective sessions.
  6. Two accounts are created with the same username.

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.

This bug lets someone create two accounts with the same username or email by signing up at the same time in two browsers. Normally, a website should check that each username and email is unique, but here the check happens too late, after the email verification step.

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.