Missing API Rate Limiting
Identifies sensitive endpoints (auth, password reset, OTP) that lack rate limiting middleware. See patterns.yaml for framework-specific detection rules.
Detection Workflow
- Enumerate endpoints — find route definitions for auth, reset, OTP, and data-listing handlers
- Check middleware — verify rate limiter is applied (express-rate-limit, Flask-Limiter, or custom)
- Validate limits — flag excessively high limits (>5000 requests/window) as ineffective
- Classify risk — auth/OTP endpoints are critical; list endpoints are medium
Vulnerable
router.post('/api/reset-password', async (req, res) => { ... });
Safe
const limiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 5 });
router.post('/api/reset-password', limiter, async (req, res) => { ... });