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.
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.
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
- Visit the gift card website and select a gift card.
- Proceed through the cart, fill in details, verify info, and choose QR code payment.
- Intercept the payment status request and its response using an intercepting proxy.
- Modify the response to change the payment status from pending to complete.
- 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.