How I Bypassed Authentication on a Fintech Platform Using a Broken Password Reset Flow (Bug Bounty…
The password reset tokens were predictable, incrementing counters disguised as UUIDs, and the reset endpoint did not bind the token to the account or enforce single use. An attacker could guess a valid token for a victim's account and take over the account without knowing the password.
It was a fintech company running a private bug bounty on a well-known platform, decent bounty range, moderate scope, nothing that screamed “easy win.” I’d spent about four hours poking at the usual suspects — IDORs on account endpoints, some half-hearted rate limit testing, a couple of stored XSS attempts that got…
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 as a predictable counter rather than a cryptographically random value, and the server validated the token and user ID separately without binding them or enforcing single use.
Impact
An attacker could take over any user's account and access linked bank account data and transaction history, because there was no rate limiting, tokens lasted 30 minutes, and no re-authentication was required after reset.
What the attacker needed
Victim's email address known; ability to trigger password reset for victim; no rate limiting on verification endpoint
The fix
The issue was fixed by using cryptographically secure tokens, enforcing single use, rate limiting the verification endpoint, and requiring a fresh OTP before viewing bank data after a reset.
How it was found
- Trigger a password reset on your own test account and capture the reset link.
- Request several more resets and compare the tokens to see the pattern.
- Trigger a reset for a victim account and note the request time.
- Generate candidate tokens based on the pattern within a tight time window.
- Send each candidate token with the victim's user ID to the reset endpoint.
- On a successful response, obtain a session cookie for the victim account.
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 sends a special link to your email. That link contains a secret code that proves you own the account. Here, the codes were not random: they went up by one each time, like 1, 2, 3. So an attacker could guess the next code and reset someone else's password without ever seeing their email.
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.