My First Instagram Bug Bounty Report
Instagram did not invalidate a second, unused password reset link after the account password had already been changed once. An attacker with temporary physical access to a victim's phone and email could reuse that link to set a new password and take over the account.
A couple of days ago while testing a website for bugs, I had Instagram open in one of my tabs. At some point, that tab sent some data to its servers, and my proxy intercepted it, bringing to my attention a better target with higher bounty opportunities.
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 reset tokens were not invalidated when the password changed, and the token was a short, guessable word rather than a long random string.
Impact
An attacker with brief physical access to a victim's phone and email could reuse the stale link to change the password again, and the victim would receive no notification email for the second change.
What the attacker needed
Temporary physical access to victim's phone; access to victim's email inbox; attacker's own reset link open
How it was found
- Request two password reset links and open both in the browser.
- In one tab, change the password.
- Log out from the account settings.
- In the second tab, change the password again using the older link.
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 forget a password, a site emails you a special link that lets you set a new one. Normally that link stops working once it has been used or once the password changes. Here the second link kept working, so someone who briefly held your phone could use it later to change your password and lock you out.
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.