َالْحَمْدُ لِلَّهِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللَّهِ، اللَّهُمَّ عَلِّمْنَا مَا…
The application allowed changing the account email address without verifying ownership of the new email, and password reset requests still worked for the original email. An attacker could register with their own email, change it to the victim's email, and later reset the password using their original email to take over the account.
Published on medium.com
During my testing, I discovered a logic flaw that can lead to a full account takeover without any user interaction (zero‑click).
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 verify ownership of the new email during an email change and did not invalidate the old email for password reset purposes.
Impact
The attacker can repeatedly regain access to the account, and the victim has no clear way to permanently secure it, so all victim data and actions inside the account can be accessed or modified.
What the attacker needed
Attacker can register an account; victim has not yet registered; victim uses forgot password
The fix
The application should verify ownership of any new email address before accepting an email change and should invalidate password reset requests sent to old email addresses.
How it was found
- Attacker registers an account using their own email address.
- Attacker changes the account email to the victim's email address without any verification.
- Victim tries to sign up and is told the email is already registered.
- Victim uses the Forgot Password function to reset the password and starts using the account.
- Attacker triggers the Forgot Password flow using their original email.
- Attacker receives the password reset link and resets the password to regain control.
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 sign up, the site should check that you really own the email you give. Here, it let someone change the email on their account to someone else's without any proof. Later, the site still sent password reset links to the old email, so the attacker could always get back in.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.