Skip to content

Rate limiting only covers POST /payments; other endpoints are unthrottled #72

Description

@Darkdruce

Summary

The limiter short-circuits unless the request is exactly POST /payments, leaving POST /merchants, all GET endpoints, and redelivery unprotected.

Location

  • src/api/mod.rs:168 (if req.method() == POST && path == "/payments")

Details & impact

Merchant provisioning, payment enumeration, webhook listing, and redelivery can all be flooded, enabling DoS and abuse (see the provisioning and redelivery issues).

Suggested fix

Apply a baseline limiter to all routes with per-route overrides for expensive/sensitive ones.

Acceptance criteria

  • All routes have a default limit; sensitive routes have stricter limits.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiHTTP API surface and handlersreliabilityReliability, resilience, and fault-tolerancesecurity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions