Skip to content

node: an upstream fault forgives the floor, so a serve-miss can spend the node's buyer pool without floor debt #2841

Closed

Description

@altanoruc

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

owes_floor_debt (crates/node/src/handlers/client/outcome.rs:153) returns false for any Err that is not PeerFault / ClientPaymentFault (wire.rs:362), and serve_leg.rs:162 then settles the floor to zero. ADR 003:303 justifies this as "the fronted bytes stay in the node's cache".

On a serve-miss, though, the node pays the upstream for its first window (crates/client/src/pacer.rs:49, lib.rs:3384-3390) before the downstream client owes a proof. An upstream Unavailable then ends the serve with a non-peer fill error (crates/node/src/node_origin/pull_leg.rs:1296-1348).

A counterparty that is both the downstream pool owner and a bonded upstream holder can request fresh hashes. It is paid one upstream voucher per stream and never accumulates floor debt:

  • the remaining − M and k-window ceilings never engage;
  • the ADR 041 warming allowance is not debited on a faulted run (pull_leg.rs:1811-1822).

Per cycle the amount is small (one window at the upstream rate), but it is unbounded over time and never consumes the attacker's deposit. only_the_clients_own_conduct_leaves_floor_debt (handlers/client/tests.rs:2015-2065) pins the forgiveness as intended. Related: #856, #2767.

  • Charge the floor on a miss-leg end for which the node fronted upstream USDC: skip settle_end when the fill reports upstream bytes paid, or treat a FillError chain as owing
  • Update that test and the sentence in ADR 003:303

Activity

  1. added
    kind:security
    prio:medium
    area:node
    area:payments
    on Nov 5, 2026
  2. added theissue type on Nov 5, 2026
  3. moved this from Backlog to In progress in deCDNon Nov 11, 2026
  4. moved this from In progress to Done in deCDNon Nov 13, 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:nodearea:paymentskind:securityprio:medium

    Type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions