Skip to content

client: decdn get pays the stream-signed rate, with no bound to the probe quote it selected the node on #2840

Closed

Description

@altanoruc

Source: security review at b5e29ae (2026-11-05). Each claim below was re-read on disk by independent verifiers.

The daemon's miss pull bounds the stream rate by the probe rate with effective_rate_ceiling(candidate_rate, ..) (crates/node/src/node_origin/mod.rs:2096, :2122). The CLI and SDK lanes do not:

  • lane_source passes the bare deps.max_rate_per_mb (crates/client/src/lanes.rs:414), whose CLI default is 0;
  • open_progressive_pull_impl checks the stream rate only when the ceiling is non-zero (crates/client/src/lib.rs:3253);
  • the probe rate is harvested into the peer store but never compared (crates/client/src/targets.rs:585-587).

A node that signs a low probe rate, which decdn quote and the decdn get estimate print, and a higher stream rate is paid the stream rate, up to MAX_RATE_PER_MB (1000 µUSDC/MB). The funding-recovery rule allows further top-ups while bytes keep arriving. The signed pair is slashable evidence, but the CLI does not file it.

#1375 named the missing buyer ceiling; this is the path its fix did not reach.

  • Carry each candidate's signed probe rate into lane_source, and pass effective_rate_ceiling(probe_rate, max_rate_per_mb) (same in bundle/engine.rs)
  • Test: a CLI pull refuses a stream rate above the selected candidate's probe rate

Activity

  1. added
    kind:security
    on Nov 5, 2026
  2. added theissue type on Nov 5, 2026
  3. added
    prio:medium
    area:cli
    area:client
    on Nov 5, 2026
  4. moved this from Backlog to In progress in deCDNon Nov 7, 2026
  5. moved this from In progress to Done in deCDNon Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:clientkind:securityprio:medium

    Type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions