Skip to content
Business logic Write-up Beginner

Business Logic Error - Bypassing Payment with Test Cards

The production checkout accepted test card credentials, indicating the payment integration was in test mode or not validating live tokens. An attacker could complete a payment using a test card without real funds.

infosecwriteups.com

Published on infosecwriteups.com

Business logic bugs are sneaky. They’re not about crashing servers or SQLi, but about using an app exactly as intended but in a way that breaks the business.

Umanhonlen Gabriel, on infosecwriteups.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 payment integration was left in test mode or did not verify the actual transaction status of the card.

Impact

An attacker could bypass payment and obtain paid services for free using test card credentials.

What the attacker needed

Access to the production checkout; test card credentials

The fix

The payment integration should be configured to reject test cards in production and verify the actual transaction status before accepting payment.

How it was found

  1. During reconnaissance, observe that many programs filter test card credentials on production.
  2. Attempt the payment flow using test card credentials against the production checkout.
  3. The gateway accepts the test card, indicating test mode or insufficient validation.

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 test card is a fake card number used by developers to try payment systems without spending money. Here, the live website accepted such a card as if it were real, so someone could get a paid service for free. This is a business logic flaw because the system trusted the payment attempt without checking if the card was real.

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.

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.