How I Discovered a Bug to Delete Any User Account!
The profile update feature allowed an attacker to change their email address to one already used by another account, without proper validation. This caused both accounts to become unusable, effectively deactivating the victim's account and locking out the attacker as well.
medium.com
Published on medium.com
Hey Hackers! Abhijeet Kumawat here, back with another exciting bug bounty finding! 🚀
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 did not validate that the new email address was already in use by another account before updating the profile.
Impact
This bug allowed an attacker to deactivate any user's account by changing their own email to the victim's email, causing a denial of service for the victim.
What the attacker needed
A free account; victim's email address known
The fix
The application should validate that an email address is not already in use before allowing a profile update.
How it was found
- Create two accounts, one as attacker and one as victim.
- Verify both accounts via email.
- Log in as the attacker and go to the profile update section.
- Change the attacker's email to the victim's email address.
- Log out and try to log in to both accounts.
- Both accounts show 'Invalid Username or 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 write-up has not been written yet. The Original tab links to the source.
A user could change their email to someone else's email address, even though that email was already registered. The system did not check if the new email was already taken, so it broke both accounts and nobody could log in.
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.