Skip to content

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 2

Your HMAC check uses if computed == provided: allow(). What's the vulnerability class?

#

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?

#

Question 5

When is HMAC request signing the wrong choice? Select ALL that apply: