How I could’ve bypassed the 2FA security of Instagram once again
A password reset button in an Instagram email redirected to a mobile app interface that allowed resetting the password without a 2FA check. An attacker with access to the victim's email could reset the password and log in without the second factor.
Published on infosecwriteups.com
So this started when I was really interested in bypassing the 2FA security of Instagram using the Instagram-connected email account as I always felt, that integration was a bit less secured and there may be ways to bypass it. Nov-2020, I found a way to bypass the 2FA in Instagram using the ‘secure your account here’…
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 mobile password reset flow reached from the email button did not enforce the 2FA check that the web flow did.
Impact
An attacker with access to the victim's email could reset the password and log in without 2FA, then disable 2FA and take over the account; the web flow was not vulnerable because it still required an OTP.
What the attacker needed
Access to the victim's email account; victim has 2FA enabled; attacker uses the Instagram mobile app
The fix
The product developers fixed it properly after the report.
How it was found
- Create a test Instagram account and enable 2FA using the web.
- Log into the victim's email account, assuming it is compromised.
- Use Instagram's Forgot Password with the victim's username to request a login link by email.
- Open the email and click the 'Reset your password' button, which redirects to the Instagram app.
- Reset the password in the app interface and log in without a 2FA prompt.
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.
Two-factor authentication (2FA) is a second proof of identity, like a code sent to your phone, needed after your password. The report found that a special password reset link in an email skipped asking for that code when opened in the Instagram app. So someone who could read the victim's email could take over the account without the victim's phone.
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.