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