How I Got my First Bounty €€ ?
The application allowed changing the account email address without verifying the new address, and the password reset flow sent reset links to that unverified email. An attacker could change the email to one they control and then reset the password, leading to account takeover.
Published on medium.com
I’m Muralidharan, a penetration tester, and this is my first article, where I’ll be sharing the story of how I secured my very first bounty. My journey into bug hunting began in January 2023, but at the start, I wasn’t fully committed.
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 email change endpoint did not require verification of the new address before updating it, and the password reset flow trusted the unverified email.
Impact
An attacker could change the account email to one they control and then reset the password, leading to full account takeover and access to sensitive information.
What the attacker needed
A free account; victim's email address known
The fix
The system should enforce email verification whenever an email change is requested, not update the email until verified, and consider logging out all sessions after a change.
How it was found
- Create an account and complete email verification.
- Log in and go to the Edit Profile section.
- Change the email address to the victim's email.
- Observe that the email is updated without any verification.
- Use the Forgot Password feature to reset the password to the new email.
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 change your email on a website, the site should send a code to the new address to prove you own it. Here, the site skipped that check, so someone could put in their own email and then use the 'forgot password' feature to take over the account.
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.