Logic Flaw to Race Condition to Four Digit Bounty
A bank account verification feature sent a small test transfer to confirm ownership, but the backend checked the verification state without locking it, so many identical requests sent at the same moment all passed the check. An attacker could trigger repeated transfers to an arbitrary bank account, and the author notes the financial loss scales with automation.
infosecwriteups.com
Published on infosecwriteups.com
FinTech applications often rely on bank account verification to ensure secure withdrawals and fund transfers. A very common approach used nowadays is the 1Rs verification mechanism, where the application sends a small amount (1Rs) to the user’s bank account to verify ownership.
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 verification endpoint checked the account's verification state and then performed the transfer without an atomic lock or state update, so concurrent requests all passed the check.
Impact
An attacker could cause repeated small transfers to an arbitrary bank account, and the author states the financial loss could scale with automation; the text does not describe any defence that limited it.
What the attacker needed
A mobile number and OTP to register; ability to send parallel requests
The fix
The vulnerability was fixed the same day, though the text does not describe the fix; it should be fixed by making the verification check and transfer atomic, for example with a lock or a single-use state update.
How it was found
- Submit bank details to the verification endpoint and capture the request.
- Send the same request many times one after another to confirm sequential requests are handled correctly.
- Place the request in many parallel tabs and send the group in parallel.
- Observe that the small test transfer is credited many times, confirming the race condition.
- Change the account number and IFSC code to direct the repeated transfers to an arbitrary 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 add a bank account to a money app, the app often sends a tiny payment to prove the account is yours. This app checked 'is this account already verified?' but did not stop several checks happening at the same instant, so many payments went out at once. Sending many requests at exactly the same moment is called a race condition.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.