Stealing Money at the Speed of Light: Exploiting Race Conditions for Financial Fraud in…
The text describes a hypothetical race condition in an e-commerce checkout where multiple concurrent requests can place orders before payment is confirmed, allowing an attacker to receive multiple orders for a single payment. It also mentions similar abuse of coupons, gift cards, loyalty points, and stock systems.
Published on myselfakash20.medium.com
Imagine you’re shopping online, about to check out, and you suddenly realize… what if you could pay once and place the same order multiple times for free? Sounds like a hacker’s dream, right?
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 checkout process creates the order and processes payment as separate steps without locking or atomicity, so concurrent requests can all pass the order-creation step before any payment is confirmed.
Impact
An attacker could obtain multiple orders for the price of one, and similar flaws could allow repeated coupon use, gift card reuse, loyalty point abuse, or stock manipulation.
What the attacker needed
Access to the checkout endpoint; ability to send concurrent requests
The fix
The checkout should be fixed by making order placement and payment deduction atomic, using locks, idempotency tokens, rate limiting, and sequential queue-based processing.
How it was found
- Intercept the checkout request to find the endpoint and parameters.
- Send many checkout requests in parallel before payment is confirmed.
- Observe that multiple orders are placed but only one payment is taken.
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 race condition is when a website handles several actions at the same moment and gets confused about the order they happen in. Here, if you send many checkout requests at once, the shop might create several orders before it records that you have paid, so you get more goods than you paid for.
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.