Skip to content

[security] Exits must never be pausable — un-gate CapacityBond.requestUnbond/unbond #2030

Closed

Description

@alpergundogdu

Summary

Operator exit paths CapacityBond.requestUnbond and unbond are whenNotPaused, so a captured/malicious PAUSER can trap every operator's bond indefinitely just by pausing. Client exits (PaymentPool.reclaim/closePool) are already un-pausable — operator exits should match.

Impact

  • A malicious pause freezes all operator bonds with no exit → funds trapped for as long as the pause holds.
  • Asymmetry today: clients can always reclaim; operators cannot unbond while paused.

Fix

Remove whenNotPaused from requestUnbond and unbond. Exits keep their own safeguards — the unbonding period and any pending-slash lock stay in force (pause was never the right tool for holding a suspected operator; per-operator slash locks are). Establish the invariant: pause halts new intake/serving, never exit.

  • Audit exit-adjacent paths (deregisterNode, reclaimNodeId, etc.) for the same trap; winding down an existing position must never be pausable, while new intake (bond, openPool, declareMbps, serving) may remain pausable.

Acceptance criteria

  • requestUnbond/unbond succeed while the contract is paused, subject to the unbonding period + slash locks.
  • Test: pause the contract, then an operator can still requestUnbond and complete unbond after the period.

Activity

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

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions