IDOR to Payment Bypass: How a Trusted Payment Callback Issued a Policy Without Paying
The backend trusted quotation identifiers inside a payment gateway callback token, so changing the reference from one quotation to another caused an unpaid quotation to be converted into an issued policy. An attacker with one legitimate payment flow could issue policies without paying.
In this case, a single object reference change was enough to bypass payment entirely and issue an insurance policy without any transaction.
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 quotation identifiers supplied in the external payment callback and never bound the payment to a server-side transaction record for that specific quotation.
Impact
Policies could be issued without payment, causing financial loss and fraud that could be repeated for multiple unpaid policies by anyone with access to one legitimate payment flow.
What the attacker needed
Access to one legitimate payment flow; ability to intercept and replay the callback
The fix
Payment callbacks should be mapped to server-side transaction records, and the backend should verify who initiated the payment, the amount paid and which quotation it was created for before any state change.
How it was found
- Start a payment for a valid quotation through the configured gateway simulator.
- Intercept the success callback sent by the payment gateway to the portal.
- Decode the structured token in the callback and note the quotation identifiers.
- Replace the quotation reference in the token with a different, unpaid quotation.
- Replay the modified callback to the backend.
- Observe that the second quotation is converted into an issued policy without 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 a message back to the shop saying 'this is paid'. Here the shop believed whatever order number was written inside that message. By swapping the order number for a different, unpaid order, the tester got that order marked as paid and a policy issued for free.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.