Skip to content
Business logic Write-up Beginner

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! 🚀

Abhijeet kumawat, 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 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

  1. Create two accounts, one as attacker and one as victim.
  2. Verify both accounts via email.
  3. Log in as the attacker and go to the profile update section.
  4. Change the attacker's email to the victim's email address.
  5. Log out and try to log in to both accounts.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.