UUPS initializer protection
A proxy begins with its own storage. Missing atomic initialization leaves trust settings unset, and implementation contracts have separate initialization state.
Risk assessment
A proxy begins with its own storage. Missing atomic initialization leaves trust settings unset, and implementation contracts have separate initialization state.
Mitigation
Initialize the proxy as part of deployment, disable implementation initializers, and explicitly authorize upgrades.
Solidity mitigation excerpt
constructor() { _disableInitializers(); }
function _authorizeUpgrade(address) internal override onlyOwner {}Foundry · Regression check
Assert the implementation rejects initialization, the proxy rejects a second initialization, and its expected owner is set immediately after deployment.
Mitigation
Related topics
What should I verify first?
Assert the implementation rejects initialization, the proxy rejects a second initialization, and its expected owner is set immediately after deployment.