An IDOR and Auth Bypass That Led to Mass Account Takeover — KSFE
The forgot-password flow relied on client-side checks of server responses, so an attacker could tamper with the responses to bypass the phone/email check and the OTP check, then change any user's password by altering the username parameter. This allowed mass account takeover and access to sensitive personal data such as government IDs.
Hello friends, I’m a 3rd year BCA student & part-time Bug hunter who is very passionate about cybersecurity (Mainly web). Here is a quick article on how I was able to find a mass account takeover / Data breach vulnerability on KSFE pravasi portal (Online Chit Platform introduced for the welfare of Malayalees living…
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 application performed security checks (phone/email match and OTP validation) on the client side and the password-change endpoint did not verify that the requester owned the account.
Impact
An attacker could change any user's password and access sensitive personal data, potentially leading to a mass data breach; the report notes a script could loop through sequential usernames, though the author did not create one.
What the attacker needed
Knowledge of a valid username; ability to intercept and modify responses
The fix
The vulnerability was fixed after being reported to CERT-IN.
How it was found
- Enter a valid username and a random phone number in the forgot-password form.
- Capture the server response and change the failure code to the success code.
- Enter a random OTP and change the failure response to the success response.
- On the password-change page, capture the request and modify the username parameter to target another account.
- Replay the request to change the victim's password, then log in with the new 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 reset a password, the website asks for your username and a phone number or email, then sends a one-time code (OTP) to prove it's you. Here, the website trusted the browser to decide if those steps succeeded, so an attacker could edit the server's reply to make it look like the checks passed. After that, the password-change request accepted any username, so the attacker could reset anyone'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.