Payment Bypass: When “Payment Successful” Was Just a Suggestion
The backend trusted client-supplied payment status parameters from the redirect instead of verifying the transaction with the payment gateway. An attacker could replay and modify the finalisation request to mark a failed payment as successful, causing a policy to be issued without any payment.
When a system displays “Payment Successful,” everyone assumes the hardest part is over. Money must have moved.
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
The backend trusted client-controlled redirect parameters and request values indicating payment success instead of independently verifying the transaction outcome with the payment gateway.
Impact
Policies could be issued without payment, leading to direct financial loss and fraud potential at scale.
What the attacker needed
Access to the payment flow; ability to intercept requests
The fix
The payment flow should be fixed by verifying payment status server-to-server with the gateway and tying policy issuance to internal transaction records rather than redirect parameters.
How it was found
- Complete a payment using the gateway simulator in failure mode so the transaction fails.
- Observe the redirect back to the application containing transaction identifiers, payment status, and quotation/policy references.
- Intercept the request that finalises payment and issues the policy.
- Modify only the payment status indicator in the intercepted request.
- Forward the modified request to the application.
- Observe that a policy is issued and confirmation/download options become available despite no payment.
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 pay online, the payment company sends you back to the shop with a message saying whether it worked. This shop believed that message without checking with the payment company itself. So someone could change the message to say 'paid' and get the product 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.