Description
Signature verification (Horizon lookups, crypto operations) is CPU-intensive. The general rate limiter doesn't protect against targeted abuse of these heavy endpoints.
Proposed Solution
Apply a stricter secondary rate limit (e.g., 10 requests/minute) to /register and /webhooks POST endpoints that perform signature verification.
Acceptance Criteria
Suggested Implementation Areas
server.js, src/routes/v1/userRoutes.js, src/routes/v1/webhookRoutes.js
Impact
Prevents CPU exhaustion attacks targeting expensive cryptographic verification operations.
Description
Signature verification (Horizon lookups, crypto operations) is CPU-intensive. The general rate limiter doesn't protect against targeted abuse of these heavy endpoints.
Proposed Solution
Apply a stricter secondary rate limit (e.g., 10 requests/minute) to
/registerand/webhooksPOST endpoints that perform signature verification.Acceptance Criteria
Suggested Implementation Areas
server.js,src/routes/v1/userRoutes.js,src/routes/v1/webhookRoutes.jsImpact
Prevents CPU exhaustion attacks targeting expensive cryptographic verification operations.