Skip to content

node: cdn/client/v1 refusals cost an unthrottled signature and an origin HEAD per new hash #2694

Closed

Description

@thiras

Source: GHSA-35pg-6mx4-2ph6 (M10, internal audit at 772c8f4, re-confirmed on main).

On cdn/client/v1, every refusal past the concurrency cap goes through respond_error, which signs the response with one ECDSA signature (crates/node/src/handlers/client/wire.rs:119-137). This covers ChainStale, HashDenied, ChainHashDenied, ForeignNamespaceDeclined and InternalError (crates/node/src/handlers/client/dispatch.rs:429-460,537-560). On origin-only nodes, origin_probe_presence also runs a live backend HEAD on a memo miss, before any lane or payment check (crates/cache/src/engine.rs:2220-2234). The memo is keyed by hash, so each new random hash costs one origin HEAD. The three-layer limiter in crates/node/src/rate_limit.rs is wired only for the DHT and probe handlers. Unpaid requests can therefore spend node CPU and origin requests in a way ADR 005 means to rate-limit.

  • Put a per-peer request rate limit ahead of the refusal and origin-probe paths on cdn/client/v1 (reuse rate_limit.rs)
  • Count refusals per peer, so that a refusing flood is throttled before it reaches signing or the origin HEAD
  • Test: a flood of random-hash requests from one peer stops reaching the origin probe

Activity

  1. added
    kind:security
    prio:medium
    area:node
    area:cache
    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:cachearea:nodekind:securityprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions