Skip to content
Account takeover Write-up Intermediate

I Found a Broken Login System in a Fintech App — Here’s How I

The fintech app's JWT handling had three flaws: expired tokens were still accepted, tokens remained valid after logout, and the server trusted the token's user ID without checking ownership. An attacker with a stolen token could keep using it for 15 days, even after the victim logged out, and could change another user's email to take over their account.

Yamini Yadav_369 Follow

Published on osintteam.blog

It was a random Tuesday night. I had nothing special planned — just me, my laptop, and a cup of chai getting cold on my desk.

Yamini Yadav_369, on osintteam.blog

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 server did not validate the token's expiry claim, did not maintain a blocklist for logged-out tokens, and resolved the acting user solely from the token's user ID without verifying ownership of the target resource.

Impact

An attacker who stole a token could keep using it for up to 15 days even after the victim logged out, and could change the victim's email to receive password resets and take over the account, potentially accessing funds.

What the attacker needed

A free account; ability to intercept traffic; weak JWT secret (for re-signing)

The fix

The app should enforce short token expiry with server-side checks, blocklist tokens on logout, and verify that the token's user ID matches the resource owner.

How it was found

  1. Create an account and inspect the Authorization header in Burp Suite to find the JWT.
  2. Decode the token on jwt.io and note the 15-day expiry.
  3. Re-sign the token with a past expiry using a cracked weak secret and send a wallet transfer request.
  4. Log in, save the token, log out, then replay the saved token to the dashboard endpoint.
  5. Create two accounts, collect both tokens, and use one account's token to call the profile update endpoint for the other 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.

A JWT is a small text token a website gives you after login so it can recognise you on later requests. This app never checked whether the token had expired, never cancelled tokens when you logged out, and trusted the user ID inside the token without checking that the user actually owned the account being changed. So a stolen token stayed useful for days and could be used to take over someone else's account.

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 Yamini Yadav_369

View all

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