Skip to content
Account takeover Write-up Intermediate

Full Account Takeover (Android Application)

The password recovery response for an Android app included the one-time code (OTP) that was meant to be sent only to the victim's phone. An attacker who could intercept the response could read the code and reset the victim's password, leading to full account takeover.

Vishal Bharad Follow

Published on medium.com

{{media:0}}

Vishal Bharad, 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

Impact

An attacker who can intercept the recovery response could obtain the OTP and reset the victim's password, resulting in full account takeover.

What the attacker needed

Android device or emulator with the target app; Ability to intercept app traffic (SSL pinning bypass); Victim's username or mobile number

How it was found

  1. Set up an Android penetration testing environment and install the target app.
  2. Bypass SSL pinning so traffic can be captured in Burp Suite.
  3. Create a victim account and start the password recovery flow with the username or mobile number.
  4. Capture the recovery request in Burp Suite and enable response interception for that request.
  5. Forward the request and read the response, which contains the OTP.
  6. Use the OTP to reset the victim's password.

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, many apps send a short code to your phone to prove it is you. Here, the app also put that same secret code in the reply it sent back to the app, so anyone who could watch that reply could read the code and use it to change the password. This is like a bank writing your PIN on the outside of the envelope.

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.

More by Vishal Bharad

View all

5 more disclosed reports, best first.

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.