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
incentive: a same-root voucher bump can credit a lane past its cap #2700
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