Skip to content
Business logic Write-up Intermediate

When a Composite Checkout Keeps Pricing From a State That No Longer Exists

A bundled checkout applied a threshold-based fee waiver to one transaction because a second transaction was attached, but when the second transaction's authorization failed the first was still finalised with the discounted pricing. An attacker could deliberately trigger a partial authorization failure to keep bundle-derived pricing on a transaction that no longer qualified for it.

sin99xx Follow

Published on sin99xx.medium.com

Most payment bugs people look for are obvious: changing a price, reusing a discount, forcing a negative total, or finding a race condition.

sin99xx, on sin99xx.medium.com

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 treated bundle eligibility as a sticky flag set when the threshold was crossed, and never recomputed pricing when the qualifying transaction failed.

Impact

A user could obtain a fee waiver on a transaction that was not independently entitled to it, paying less than the correct standalone total.

What the attacker needed

Multi-leg checkout with bundle pricing; payment source covers only one leg

The fix

On partial failure the system should cancel the whole composite checkout or reprice the surviving transaction as standalone, strip bundle incentives and require fresh authorization for the corrected amount.

How it was found

  1. Start a checkout with a single transaction that does not qualify for reduced pricing.
  2. Attach a second transaction so the combined value crosses the bundle threshold.
  3. Confirm the first transaction now shows the reduced fee.
  4. Proceed to payment with a source that covers the discounted first transaction but not the full bundle.
  5. Observe the first authorization succeeds and the second fails.
  6. Observe the first transaction finalises while keeping the bundle-derived pricing.

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 checkout let you add a second item so the combined total crossed a threshold, which made the first item cheaper. When paying, the second item's payment failed but the first item was still completed at the cheaper price. The system forgot to recheck whether the first item still deserved that discount once the second item was gone.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by sin99xx

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.