Files
forumlify/test
OrbisAI SecurityandClaude Sonnet 5 381b98bf1f fix: split auth rate limiter into independent per-IP and per-account buckets
authLimiter was mounted before express.json()/urlencoded(), so its
keyGenerator read req.body while it was still unparsed, and combining IP
with a client-controlled account value into one key let an attacker rotate
the account to get a fresh bucket per request, bypassing the per-IP limit.
Replace it with authIpLimiter (unchanged position, IP-only key) and
authAccountLimiter (mounted after body parsing, account-only key), so
neither counter can be bypassed by manipulating the other's input.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 18:28:09 +05:30
..