Skip to content
Account takeover Write-up Intermediate

Instagram Authentication Flaw in Android App

The Instagram Android app accepts the Facebook account password for password-based login after repeated attempts, even though it initially shows an incorrect password error. An attacker who knows a victim's Facebook password could log into the victim's Instagram account, bypassing the expectation that only the Instagram password works.

akashkarmakar787 Follow

Published on medium.com

There is an authentication flaw in the Instagram password-based login in the Android App.

Akash Karmakar, 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 Android app's login logic incorrectly falls back to validating the Facebook password after multiple failed attempts, instead of strictly checking only the Instagram password.

Impact

An attacker who knows a victim's Facebook password could log into the victim's Instagram account, and this may also affect apps that use Instagram OAuth for authentication.

What the attacker needed

Android Instagram app; Victim's Instagram username or email; Victim's Facebook password; Multiple login attempts

The fix

The Android app should be fixed to accept only the Instagram password for password-based login, never the Facebook password, and to handle repeated attempts consistently.

How it was found

  1. Open the Instagram Android app and go to the password-based login screen.
  2. Enter the Instagram username or email and the Facebook password instead of the Instagram password.
  3. Observe an incorrect password error.
  4. Repeat the login attempt multiple times with the same credentials.
  5. After several attempts, the login succeeds and the user is logged in.

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 log into Instagram with a username and password, the app is supposed to check only your Instagram password. This report says that on Android, if you type your Facebook password instead, it first says it is wrong, but after trying several times it lets you in. That means someone who knows your Facebook password might also get into your Instagram account, which you would not expect.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.