Skip to content
Business logic Write-up Beginner

The Bug That Kept On Giving :: PaymentBypass :: QR CODE

The payment status response from the server could be modified by the client to mark a pending payment as complete, allowing an attacker to obtain a gift card without paying. The attacker intercepts the response and changes the resultCode from pending to complete, receiving a confirmation email and the gift card.

g30rgy th3 d4rk Follow

Published on crypt0g30rgy.github.io

I was scrolling my twitter feed when i can across a tweet from @intigriti about paywall bypass, and i remembered i had a target that had payment bypass inscope.

g30rgy th3 d4rk (@Crypt0g30rgy), on crypt0g30rgy.github.io

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 relied on a client-side response to determine payment status instead of verifying the payment with the payment provider.

Impact

An attacker could obtain gift cards without paying, as the server accepted the modified response and sent a confirmation email.

What the attacker needed

Access to the gift card purchase flow; ability to intercept and modify HTTP responses

How it was found

  1. Visit the gift card website and select a gift card.
  2. Proceed through the cart, fill in details, verify info, and choose QR code payment.
  3. Intercept the payment status request and its response using an intercepting proxy.
  4. Modify the response to change the payment status from pending to complete.
  5. Observe the payment marked as complete and receive a confirmation email.

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.

When you buy something online, the server tells your browser whether the payment succeeded. Here, the server trusted the browser's word that the payment was complete, so someone could edit that message to say 'paid' without actually paying. This let them get a gift card for free.

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 g30rgy th3 d4rk

View all

7 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.