Skip to content
Account takeover Write-up Intermediate

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.

1-day Follow

Published on 1-day.medium.com

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…

1day, on 1-day.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 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

  1. Enter a valid username and a random phone number in the forgot-password form.
  2. Capture the server response and change the failure code to the success code.
  3. Enter a random OTP and change the failure response to the success response.
  4. On the password-change page, capture the request and modify the username parameter to target another account.
  5. 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.

More by 1-day

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.