Series: Business Logic Flaws Uncovered
The refund endpoint processed multiple identical requests sent at nearly the same time, so one order could be refunded more than once. An attacker could obtain duplicate refunds and cause financial loss.
osintteam.blog
Published on osintteam.blog
Every bug hunter has that one moment when curiosity meets chaos. For me, it happened during a late-night pentest for an e-commerce platform.
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 backend did not lock the order record or use an atomic check-and-update when processing refunds, so concurrent requests all passed the duplicate check.
Impact
The system issued multiple refund transactions for the same order, which could cause financial loss and incorrect inventory counts.
What the attacker needed
A user account; a delivered order eligible for refund
The fix
The text recommends implementing server-side locks, atomic operations, state validation, idempotency keys, request queuing, and rate limiting; it does not state that a fix was applied.
How it was found
- Log in to the e-commerce portal.
- Navigate to Order History and open the refund request.
- Capture the refund API call.
- Send multiple identical requests at the same time using Turbo Intruder.
- Observe multiple success responses and duplicate transactions.
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 happens when a system handles two actions at the same moment and gets confused. Here, the refund button was meant to work only once per order, but sending many refund requests at the same instant made the system issue several refunds. This can cost the business money.
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.