Quiz: Request Signing & Webhook Verification¶
Review first: Request Signing
#
Question 1
Your HMAC verifier canonicalizes method + path + body_hash and accepts a t timestamp outside the signature. An attacker captures one valid request. What can they do?
#
Question 3
Stripe sends a webhook; your handler parses payload.event.type and processes the payment before verifying the signature. What's wrong?
#
Question 4
You have timestamp verification (±5 min) but no nonce store. What attack remains possible, and what's the fix?