Skip to content

incentive: a same-root voucher bump can credit a lane past its cap #2700

Closed

Description

@thiras

Source: GHSA-jr93-46mf-88wx (low bundle, internal audit at 772c8f4, re-confirmed on main).

advance_presigned (crates/incentive/src/lane.rs:848,880-884) checks only signed.voucher.amount > self.cap. On a same-root voucher it keeps the frontier: it sets next.chain.chunk_price = signed.voucher.chunk_price and leaves verified_index unchanged. The claim value is amount + verified_index × chunk_price, so it can reach cap + 255·price per lane (at most $0.255 at MAX_RATE). The preimage path does check the full claim (if claimed > self.cap, :654), so the voucher path is the inconsistent one. The contract caps the payout at a.cap - a.spent, so the excess is credited off-chain but never paid.

  • Check the full claim (amount + verified_index × chunk_price) against cap on the voucher path, as the preimage path does
  • Unit test: a same-root bump that would push the claim past cap is refused

Activity

  1. added
    kind:security
    prio:low
    area:payments
    on Oct 28, 2026
  2. self-assigned this
    on Oct 29, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 29, 2026
  4. moved this from In progress to Done in deCDNon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:paymentskind:securityprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions