[High] No Rate Limiting on RPC Endpoints (Security/Stability) #20
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/webgateway#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
The JSON-RPC handler in
caddy/openrpc/handler.golacks rate limiting. An attacker can spam expensive endpoints likeservices.createorrpc.discoverto cause a Denial of Service (DoS) or exhaust database connections.Impact
Remediation
Implement a Caddy-native or middleware-level rate limiter based on IP and User Public Key. Consider implementing:
Files Affected
caddy/openrpc/handler.gocaddy/openrpc/module.go(rate limiting configuration)