Skip to content
Account takeover Write-up Beginner

Android Application Forgot Password Token Leakage Leading to Account Takeover

The forgot password endpoint returned the password reset token in the HTTP response, meaning the token was handled on the frontend rather than securely on the backend. An attacker who knows a victim's email could obtain the token and reset the password, taking over the account.

Cyberali Follow

Published on medium.com

I hope you all are doing well. I am back to put one of my finding’s in words.

Cyberali, 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 reset token was generated and returned by the frontend or API response instead of being kept server-side and sent only by email.

Impact

An attacker could take over any user's account by knowing their email, change the password, and access purchases and linked social accounts on both mobile and web.

What the attacker needed

Know victim's email; access to forgot password form

The fix

The reset token should be generated and stored server-side and sent only to the user's email, never returned in the API response.

How it was found

  1. Register on the target application and log out.
  2. Navigate to the forgot password form.
  3. Enter the registered email, turn on the Burp Suite proxy, and click submit.
  4. Capture the request and send it to repeater.
  5. Click send and observe the token in the response.

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 your password, a website usually sends a secret code to your email so only you can reset it. Here, the app instead put that secret code directly in the reply it sent back to the browser, so anyone who asked for a reset for someone else's email could read the code and change that person's password.

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 Cyberali

View all

3 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.