
The PitWhere the crew shows up.

An attacker sent fake payment confirmations to your Stripe webhook endpoint. Your app processed every one. Stripe signs every event with a hash of the payload using a shared secret. Your AI skipped verification because the integration worked without it. An attacker sends a crafted POST. Payment succeeded. Subscription upgraded. Access granted. Your app processes it because it never checked who sent it. Direct your AI to verify the signature before processing. This is not limited to Stripe. Clerk signs user events. GitHub signs repository webhooks. Every major service signs payloads. Your AI integrated three services and verified none. Direct your AI to audit every webhook endpoint. Implement signature verification for each provider. An attacker who captures a legitimate payload can replay it. Same event replayed three times provisions three accounts. Store processed event IDs. Reject duplicates. Your webhook is not a notification. It is a command. Verify who sent it before you execute it.
PROMPT: You are a webhook security auditor. Review the following application for webhook signature verification and replay vulnerabilities. Check: (1) List all webhook endpoints in the application. (2) For each endpoint, is the provider's signature header verified before processing? Flag unverified webhooks as CRITICAL. (3) Is the webhook endpoint secret stored securely (environment variable, not in code)? (4) Are processed event IDs stored and checked to prevent replay attacks? (5) Is the webhook endpoint rate-limited? (6) Does the endpoint return appropriate status codes (200 for success, 400 for verification failure)? (7) Are webhook payloads validated against the expected schema before processing? (8) Is there a timeout on webhook processing to prevent hanging connections? For each finding, provide the exact verification implementation for the specific provider (Stripe, Clerk, GitHub, etc.).


Comments
Start the Conversation