You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vulnerability: Global rate limit is 1000 req/15min. The /api/contracts/:contract_id/keys endpoint runs a recursive CTE (skip-scan), which is more expensive than simple queries. The same rate limit applies to all endpoints.
Exploit scenario: An attacker burns all 1000 requests on the keys endpoint with contracts that have many distinct keys, maximizing recursive CTE iterations. Each request forces up to 10,000 iterations.
Impact: CPU saturation and connection pool pressure from recursive CTE queries.
Suggested fix: Add a stricter per-route rate limit on /api/contracts/:contract_id/keys:
/api/contracts/:contract_id/keys: