Skip to content
Account takeover Write-up Intermediate

Journey from low to critical bug $$$

An exported Android activity allowed bypassing the forgot-password flow, and the password reset API accepted an extra email parameter, letting an attacker reset any user's password. This led to full account takeover.

Dheeraj Madhukar Follow

Published on medium.com

I’m Dheeraj Madhukar, a working professional. After been working for a long time for enormous government as well as private organizations in the field of Cyber Security, VAPT & Forensics.

Dheeraj Madhukar, 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 activity was exported without proper access control, and the password reset endpoint did not validate that the email parameter matched the authenticated user or the reset token.

Impact

An attacker could reset any user's password and take over their account.

What the attacker needed

Android app installed; Ability to run adb commands; Burp Suite to intercept traffic

How it was found

  1. Decompile the Android app and inspect AndroidManifest.xml for activities with exported="true".
  2. Find the exported activity named ForgetConfirmPassword.
  3. Launch that activity directly using an adb command to bypass the forgot password process.
  4. Intercept the password reset request in Burp Suite.
  5. Add an extra email parameter to the JSON request body.
  6. Send the modified request to reset another user'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.

An Android app can have parts (activities) that other apps are allowed to start. If one of those parts is a password reset screen, a malicious app can open it directly and skip the normal checks. Also, the server that handles password resets trusted an extra field (email) that the app did not normally send, so an attacker could change whose password gets reset.

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 Dheeraj Madhukar

View all

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