InsightsCrypto Casinos4 min read
One Balance, Two Withdrawals: The Milliseconds That Can Break a Casino
A flaw in a casino’s withdrawal system can turn a single balance into multiple payouts. Guest writer Alan breaks down how race conditions occur, why standard security testing can miss them, and how operators can prevent them.
Written by Alan B2C26 November 2026

A casino doesn’t always need to lose a bet to lose money. Sometimes, it only needs to approve the same balance twice.
Picture an account holding 100 USDT. Two withdrawal requests arrive almost simultaneously, each for the full amount. The platform checks the first request and sees 100 USDT available. Before those funds are reserved, it checks the second request and sees the same balance. Both requests are approved. If both reach payout, 200 USDT has left the platform against a balance of just 100 USDT.
No winning streak, stolen password, or manipulated game outcome. The platform simply made two decisions about the same money before either decision took effect. That’s a race condition: a flaw where the timing of overlapping actions changes the result. This particular kind is known as TOCTOU. In a withdrawal system, the gap between checking a balance and reserving it can be the difference between one legitimate payout and two.
When two correct decisions create one wrong result
Imagine a cashier checking an account before handing over 100 USDT. Before they record the transaction, another cashier checks the same account and hands over another 100 USDT. Neither cashier misread the balance. Both saw what the account showed at that moment. The problem was that neither could see the other had already committed to paying out the money.
Software can make the same mistake. A withdrawal might involve checking the available balance, reserving the funds, creating a withdrawal record, and handing the payout to a payment provider. To the player, all of that starts with a single button. Behind the scenes, those steps may be handled by different parts of the platform, and the payout itself may take longer to complete.
That’s why the distinction between a total balance and an available balance matters. A withdrawal can still be pending with the payment provider while the funds are already reserved in the casino’s ledger. From that point on, the money shouldn’t be available for another withdrawal. The platform doesn’t need to wait for the payout to settle before it recognizes that those funds are spoken for.
Why normal testing can miss it
A withdrawal feature can pass all the obvious checks. Players cannot withdraw more than their balance. Negative amounts are rejected. Requests from users who aren’t logged in are blocked. A second withdrawal fails after the first finishes. All of those results can be true while the platform still mishandles overlapping activity.
Testing actions one at a time answers a useful question: does each request behave correctly on its own? For a wallet, there’s a second question: does the account still add up when several legitimate actions are in progress? That means looking beyond the success message on the screen. The account ledger, the withdrawal record, and what the payment provider actually paid out should all tell the same story.
Overlap is a normal part of running an online casino. A player might check their wallet on two devices. A connection might drop after a withdrawal is submitted but before the confirmation appears. A payment provider might send the same notification more than once. To the player, a missing confirmation is a reason to wonder whether the request went through. To the platform, that uncertainty should never turn one withdrawal into two.
How often do we find these vulnerabilities?
Across more than 500 penetration tests, our agency has seen how easily timing flaws can survive into production. Among the live websites we assessed, approximately 70% had at least one race condition. That figure describes our own testing sample. It’s not an estimate for the wider industry, and it doesn’t mean that 70% of the sites had a withdrawal flaw.
Not every race condition leads to lost funds. Some cause duplicate actions or leave different parts of a platform showing conflicting information. In a withdrawal flow, though, even an issue caught before payout can create work for payments and support teams. If a player sees two pending withdrawals but only one reservation appears in the ledger, someone has to establish what happened, which record is correct, and what to tell the player. Once an extra payout goes through, reconciling the records doesn’t recover the money.
What a reliable withdrawal looks like
The most important safeguard is making the balance check and the reservation a single operation in the ledger. In practical terms, the platform should only approve a withdrawal if it can set aside the money for that withdrawal at the same time. If an account has 100 USDT available, no more than 100 USDT should be committed, regardless of how many requests the platform is handling.
Retries need a separate safeguard. If the platform already accepted a withdrawal but the confirmation didn’t reach the player, retrying the same request should return or recover the existing withdrawal rather than create another. That’s different from handling two separate requests against the same balance. A reliable system needs to recognize a retry and prevent distinct requests from committing the same funds.
The player doesn’t need to know how the ledger works. They do need a clear status: whether the withdrawal was received, whether the funds are reserved, and whether the payout is complete. If the withdrawal fails and the reservation is released, the available balance should reflect that. Clear statuses make it easier for players to know when to wait and easier for support teams to explain what happened.
The smallest gap can carry the biggest risk
A platform can look polished and process thousands of ordinary withdrawals without incident. That tells you it works under the conditions it has seen. It doesn’t tell you whether the same promise holds when requests overlap, confirmations get lost, or payment updates arrive late.
For a casino handling real money, “the withdrawal works” is only half the answer. The other half is knowing that the same balance can only be spent once.






