Skip to content

fix: route proxy upgrade through governance-gated flow to prevent single-key bypass - #226

Open
ugoocreates-pixel wants to merge 1 commit into
Vero-protocol:mainfrom
ugoocreates-pixel:fix-proxy-upgrade-bypass
Open

fix: route proxy upgrade through governance-gated flow to prevent single-key bypass#226
ugoocreates-pixel wants to merge 1 commit into
Vero-protocol:mainfrom
ugoocreates-pixel:fix-proxy-upgrade-bypass

Conversation

@ugoocreates-pixel

Copy link
Copy Markdown

Closes #200

Fixes a critical vulnerability where UpgradeableProxy::upgrade bypasses the multi-sig and timelock governance by allowing a single admin to immediately replace the contract's code.

Changes:

  • Replaced the direct upgrade code in UpgradeableProxy::upgrade with a call to crate::upgrade::upgrade.
  • Requires a proposal_id to be passed, ensuring the upgrade is properly gated by the multi-sig approval and timelock mechanisms.
  • Removed unused NotInitialized and InvalidWasmHash variants from ProxyError.

@N-thnI

N-thnI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

please ensure all checks pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants