How I Was Able to Block Any Username
When an account was deleted, only the email and password were removed from the database, while the username remained reserved and could not be reused. An attacker could register any desired username, delete the account, and permanently prevent that username from being registered by legitimate users.
medium.com
Published on medium.com
FREE ARTICLE
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 deletion logic only removed the email and password fields but left the username record in the database, so the uniqueness check still saw the username as taken.
Impact
An attacker could prevent legitimate users from registering with their preferred usernames, causing a potential denial of service for critical usernames.
What the attacker needed
Ability to register and delete accounts
How it was found
- Register an account with the desired username.
- Verify the account and ensure it is active.
- Delete the account.
- Attempt to re-register with the same username.
- Observe that the username is no longer available.
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 delete an account on a website, you expect everything about that account to be removed. Here, the username was kept in the system even after deletion, so nobody else could ever sign up with that name. An attacker could therefore 'squat' on any username by creating an account, deleting it, and leaving the name permanently blocked.
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.