Skip to content

⚠️ [HIGH] Global Rate Limiting is Commented Out in server.js #995

Description

@ayomideadeniran

Description

The global rate limiter middleware is commented out in backend/src/server.js, leaving the API unprotected against abuse at the top level.

Location

backend/src/server.js line 178:

// Rate limiting
// app.use(rateLimitMiddleware(global));

Impact

  • Without global rate limiting, the API is vulnerable to DoS attacks and brute-force requests
  • Individual routes have rate limit annotations (rateLimitMiddleware(compile), etc.) but the global firewall is disabled
  • Route-level rate limiting also silently degrades to memory fallback if Redis is unavailable

Required Fix

  1. Uncomment the global rate limiter in server.js
  2. Ensure the global rate limit config has sensible defaults (currently 1000 requests per 15 minutes)
  3. Consider whether Redis must be available for production or if memory fallback is acceptable

Reference

Identified during full codebase audit of soroban-playground.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programbackendBackend related issuesbugSomething isn't workingsecuritySecurity related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions