Skip to content

redeemer: a sub-floor lane that reaches capability expiry is never redeemed, so a pool owner can take up to redeem_threshold per capability lifetime for free #2836

In review

Description

@altanoruc

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

Every redemption path returns before any chain read when the planned set's unredeemed sum is below the floor (crates/node/src/payment_settlement.rs:3167). plan_lanes drops a lane once capability_expired (:2396), so its value leaves the aggregate for good, and on chain a late redemption pays nothing (contracts/src/PaymentPool.sol:907).

The floor defaults to 1 USDC (crates/common/src/config/mod.rs:110) and cannot be set to 0. At the default 10 µUSDC/MB (:63) that is about 100 GB.

Intake takes spending_cap and expiry from the owner-signed capability, with no minimum cap and no minimum lifetime beyond the admit margin. A pool owner can therefore:

  1. sign a capability with a cap just under the floor and a short expiry;
  2. receive that much and pay for it with ordinary vouchers;
  3. let the capability expire.

The node never redeems the vouchers, and the owner reclaims the deposit. Signer keys are free, so this repeats indefinitely.

ADR 003 accepts an exposure of t "to a fresh pool"; the code makes it once per capability lifetime per node. On a busy node the loss shrinks by the honest unredeemed value packed into the same chunk.

The existing tests a_sub_floor_set_at_its_serve_cutoff_reads_nothing, shutdown_sweep_leaves_a_sub_floor_lane_unread and plan_lanes_skips_an_expired_capability each pin one half of this. Related: #2813 (the close-deadline variant).

  • Mark a lane whose claim is final (inside the capability expiry margin, not yet expired) and redeem it at a gas-sized floor instead of the configured threshold
  • Or refuse at intake a capability whose cap is below the redeem threshold, or whose lifetime is shorter than a few sweep intervals
  • Test: a sub-floor lane is redeemed before its capability expires

Activity

  1. added
    kind:security
    prio:high
    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 27, 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

Fields

Priority

None yet

Projects

  • Status
    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions