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
CapacityBond.setSlashJudge (GOVERNANCE_ROLE) lets governance swap the SlashJudge for an attacker-controlled contract that fabricates slashes against honest operators.
Impact
A malicious judge can slash honest/competitor operators, burning their bonds (50% burn / 50% challenger via SlashEscrowLib) and stripping their vote weight — this attacks the electorate itself.
Appeals are decided by governance (SlashAppeal.grantAppeal/upholdAppeal), so a captured governance both slashes and denies the appeal. Recovery is hard → tends toward fork-only.
Fix
Wire the SlashJudgeimmutable at deploy (constructor-set, delete setSlashJudge). The slash-evidence surface is already fixed by the judge's logic; there's no benign reason to hot-swap the judge on immutable contracts (replace = redeploy).
Acceptance criteria
No governance path can change the SlashJudge a CapacityBond trusts.
Activity
feat(contracts)!: governance hardening — bound capture, remove struct…