Skip to content

[security] Freeze PaymentPool.setFeeRouter — mutable router can permanently brick governance #2027

Closed

Description

@alpergundogdu

Summary

PaymentPool.setFeeRouter (GOVERNANCE_ROLE) can permanently brick on-chain governance. DecdnGovernor.feeRouter is immutable, but the router that records the bytesPerEpoch vote-weight feed is the governance-mutable PaymentPool.feeRouter. One proposal can sever the feed.

Mechanism

  • Vote weight = feeRouter.bytesPerEpoch(op, e) over a trailing window (DecdnGovernor._getVotes), read from the immutable DecdnGovernor.feeRouter.
  • bytesPerEpoch is written only by FeeRouter.routeSettlement (ROUTER_CALLER_ROLE), called by PaymentPool.
  • setFeeRouter(newRouter) repoints settlements to a new router → the immutable Governor router stops receiving byte updates → over ~13 epochs every operator's weight decays to 0 → quorum unreachable → no proposal can pass again, including recovery.

Impact

  • Permanent governance brick; last-set params freeze forever (contracts immutable). Recovery: fork only.
  • Also a money-skim vector (redemptions route through the attacker's router).
  • Doesn't need a malicious majority — a compromised bootstrap multisig or one careless proposal suffices.

On-chain today (Arbitrum Sepolia)

PaymentPool.feeRouter == Governor.feeRouter == 0xd7B0282d… — coupled today, but the setter permits divergence with no cross-check.

Fix

Preferred: make PaymentPool.feeRouter immutable (constructor-set, delete setFeeRouter). Closes the brick and the money-skim; consistent with the all-immutable contract philosophy (rotate = redeploy).
Alt (only if router rotation must survive): record bytesPerEpoch in a dedicated, immutably-wired served-bytes registry separate from the money-splitting FeeRouter.

Acceptance criteria

  • No governance path can change the router feeding DecdnGovernor vote weight.
  • Test: repoint attempt reverts / is compiled out; the Governor's bytesPerEpoch feed is un-severable.

Activity

  1. added
    prio:critical
    kind:security
    on Sep 15, 2026
  2. moved this from Backlog to In progress in deCDNon Sep 15, 2026
  3. moved this from In progress to Done in deCDNon Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:securityprio:critical

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions