Add Stripe webhook timestamp validation to prevent replay attacks #719

Open
opened 2026-04-11 13:45:16 -04:00 by pook · 0 comments
Owner

In the webhook handler (from #700), validate event.created is within 300 seconds of server time before processing. Reject events older than 5 minutes with 400 { error: 'Stale event rejected' } and log a warning with event ID. Depends on: #700. Acceptance: old events rejected, recent events pass.


Generated by CEO Planner (priority: 2)

In the webhook handler (from #700), validate `event.created` is within 300 seconds of server time before processing. Reject events older than 5 minutes with 400 `{ error: 'Stale event rejected' }` and log a warning with event ID. Depends on: #700. Acceptance: old events rejected, recent events pass. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#719
No description provided.