Skip to interview prep
Apexed

59. What should a security review verify before a webhook is allowed to update business state?

MediumApplication & data security

Technical
Show model answer

Verify the sender and message integrity using the provider's supported mechanism over the required original message representation. Confirm timestamp or freshness expectations where applicable and reject invalid messages before applying changes.

Treat valid messages as potentially repeated or reordered according to the delivery contract. Use stable event identity and safe state transitions, preserve minimal audit evidence and test the verification failure paths without sending real business actions.

What interviewers listen for

  • Verify the original signed message
  • Reject invalid requests before mutation
  • Handle legitimate repeats safely
What should a security review verify before a webhook is allowed to update business state — Cybersecurity interview question — Apexed