How a $12,000 Bounty Was Earned via Broken Logic in Payment Webho
The webhook endpoint for payment notifications used different JSON parsers at the API gateway and backend, so duplicate keys were interpreted differently. An attacker could send a payment.failed event with a duplicate status key to bypass signature checks and mark an account as paid without a real transaction.
When testing e-commerce platforms and payment integrations, security auditors often spend significant time examining the user interface: checkout forms, discount code inputs, and address fields. However, the most critical security boundaries frequently exist out of sight — specifically in server-to-server webhook…
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 system used different JSON parsers (Go and Node.js) that handle duplicate keys inconsistently, and the signature check was only applied to certain event types.
Impact
An attacker could upgrade an account to a paid tier without paying, as demonstrated by a fresh account gaining enterprise features without an executed transaction.
What the attacker needed
A free account; ability to send HTTP requests to the webhook endpoint
The fix
The engineering team enforced strict HMAC signature validation on all webhook events, rejected duplicate JSON keys at the edge proxy, and added server-side reconciliation with the payment provider.
How it was found
- Send a checkout request for the enterprise plan and cancel the payment at the gateway.
- Identify the webhook endpoint that receives payment updates.
- Send a webhook request without a valid signature to confirm it is rejected.
- Send a payment.failed event containing duplicate status keys (failed then succeeded) to the webhook endpoint.
- Observe that the account is upgraded to paid without a real transaction.
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 a payment service tells a website that a payment succeeded, the website must check that the message really came from the payment service. Here, the website had two parts that read the same message differently: one part saw 'failed' and skipped the security check, while the other part saw 'succeeded' and upgraded the account. This let someone get a paid subscription 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.