Skip to content

Add request throttling specifically for signature verification endpoints #593

Description

@Abdulazeem-code

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

  • Dedicated rate limiter for signature-heavy routes
  • 10 req/min limit per IP for /register and /webhooks POST
  • Standard 429 response with Retry-After header
  • Does not affect GET endpoints

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions