-
Notifications
You must be signed in to change notification settings - Fork 60
Webhook endpoint has no rate limiting #160
Copy link
Copy link
Open
Labels
GSSOC26GirlScript Summer of Code 2026GirlScript Summer of Code 2026backendBackend / API / DB relatedBackend / API / DB relatedbugSomething isn't workingSomething isn't workinglevel:intermediateIntermediate level difficultyIntermediate level difficultytype:securitySecurity fix or improvementSecurity fix or improvement
Metadata
Metadata
Assignees
Labels
GSSOC26GirlScript Summer of Code 2026GirlScript Summer of Code 2026backendBackend / API / DB relatedBackend / API / DB relatedbugSomething isn't workingSomething isn't workinglevel:intermediateIntermediate level difficultyIntermediate level difficultytype:securitySecurity fix or improvementSecurity fix or improvement
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
/api/webhooks/github accepts POST requests with no rate limiting. Anyone who finds the endpoint can spam it and flood the Inngest queue.
Fix
Add rate limiting using the existing rateLimit() utility before processing the payload:
File: src/app/api/webhooks/github/route.ts
Signature verification already exists - this is just an extra layer on top.