Skip to content

node: cdn/client/v1 has no per-request limit, and an unknown pool_id costs one chain RPC #2706

Closed

Description

@thiras

Source: GHSA-v6x2-q557-wx9c (H7, internal audit at 772c8f4, re-confirmed on main). Shares its fix with #2694.

cdn/client/v1 has no per-request rate limit. The only gates are the per-connection limiter and the stream concurrency cap. The ThreeLayerRateLimiter in crates/node/src/rate_limit.rs is wired only for the DHT and probe handlers. At admission, an unknown pool_id costs one getPool call (ResolvingPoolView::resolve, crates/node/src/payment_settlement.rs:1145). The negative cache is keyed per pool_id and capped, so a stream of fresh random pool ids pays one chain RPC each. A fresh signer likewise costs one getAuthorization call (:1293).

A peer can therefore exhaust the operator's RPC quota. Once the blacklist watcher then stalls for longer than chain_staleness_grace_sec, the node refuses every serve and answers every probe has_blob: false.

Activity

  1. added
    kind:security
    prio:high
    area:node
    area:payments
    on Oct 28, 2026
  2. added this to the v0.3 milestone on Oct 28, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  5. moved this from In progress to Done in deCDNon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodearea:paymentskind:securityprio:high

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions