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
{{ message }}
Repository navigation
node: cdn/client/v1 refusals cost an unthrottled signature and an origin HEAD per new hash #2694
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
docs: review follow-ups for the limiter, admin and config docs