A Webhook With No Memory: Replay and Forgery in a Payment Notific
The payment webhook endpoint did not cryptographically verify the signature against the payload, so a modified payload with a mismatched signature was accepted as a valid payment confirmation. Separately, the endpoint had no replay protection, so a genuine, unmodified webhook could be resent and processed again, triggering order fulfilment repeatedly.
Webhooks occupy a strange trust position in modern application architecture. They’re incoming requests, arriving over the open internet exactly like any request from a browser or an attacker, yet they’re routinely treated with a level of implicit trust closer to an internal system call, because the payload describes…
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 webhook endpoint checked only that a signature header was present rather than validating it against the payload, and it kept no record of processed events to reject duplicates.
Impact
An attacker could forge payment confirmations to release goods without a real payment, or replay a single genuine confirmation to trigger fulfilment multiple times for one transaction.
What the attacker needed
Ability to send requests to the webhook endpoint; knowledge of the expected payload shape; a genuine webhook payload for replay
The fix
The platform implemented proper cryptographic signature verification and event-level idempotency tracking within the same patch cycle.
How it was found
- Capture a legitimate webhook payload from a real test transaction, including its signature header.
- Modify the payload's order amount and order ID while leaving the original signature attached.
- Submit the modified payload to the webhook endpoint and observe it is accepted and processed.
- Resubmit an entirely unmodified, genuine webhook payload that had already been processed once.
- Observe the endpoint processes it again as a new payment event, triggering fulfilment logic once more.
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.
A webhook is an automatic message one service sends to another, like a payment processor telling a shop that a payment succeeded. The shop's endpoint accepted these messages without properly checking they really came from the payment processor, and without remembering which ones it had already handled. That meant someone could fake a payment message or resend a real one to get goods released without paying, or get the same order fulfilled many times.
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.