Episode 3— Order Validation Vulnerabilities: How I Bypassed Broken Business Logic to Manipulate Checkout and Pricing Flows
The article describes a chain of business logic flaws in an online store's order lifecycle, including a race condition allowing duplicate refunds, address tampering after payment, and replay of unsigned payment webhooks. An attacker could obtain goods without paying, receive multiple refunds, or reroute deliveries.
Published on osintteam.blog
I was testing an online store late at night. The site looked solid: carts, payment success pages, order histories.
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 checks order state and then acts on it without atomic updates, allowing race conditions, and it trusts client-supplied fields and webhooks without proper validation.
Impact
An attacker could cause financial loss through duplicate refunds, receive goods without paying, or reroute deliveries, though the article notes these tests must be done only on authorised systems.
What the attacker needed
An authenticated user account; ability to intercept and modify requests; ability to send concurrent requests; authorised testing environment
The fix
The article recommends making state transitions atomic with database locks, using idempotency keys for financial endpoints, locking critical fields after payment, and validating webhook signatures.
How it was found
- Map the order lifecycle and identify endpoints for creation, payment, shipping, and refund.
- Capture a normal refund request using a proxy.
- Send multiple identical refund requests simultaneously using a tool or script.
- Observe if multiple successful responses with different refund IDs are returned.
- Verify in the account dashboard or logs that multiple refunds were recorded.
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.
This is about an online shop where the steps of an order (pay, ship, refund) are not checked properly. By sending requests at the same time or changing details after paying, a buyer could get money back more than once or have goods sent to a different address. The article explains how to test for these mistakes in a safe lab.
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.