Uncontrolled actions after transferral of contract ownership
Summary
In StrategyPassiveManagerVelodrome.sol, in the retireVault function, unirouter and owner are set to address(0).
Vulnerability Detail
After this, the contract ownership is transferred to the zero address. If the owner is transferred to an address that is not in your control or does not have smart contract capabilities, all functions with onlyOwner modifier will be locked forever , as the contract owner address 0x0 is reserved and cannot be used to send transactions.
Impact
All functions with onlyOwner modifier will be locked forever, for example retireVault(), setOutputToNativePath(), setDeviation(), setTwapInterval(), setPositionWidth(), setRewardPool()
You might want to consider a solution where the contract ownership is transferred to a protocol-owned emergency address from which specific mitigation actions can be taken.
w42d3n
medium
Uncontrolled actions after transferral of contract ownership
Summary
In StrategyPassiveManagerVelodrome.sol, in the
retireVault
function,unirouter
andowner
are set toaddress(0)
.Vulnerability Detail
After this, the contract ownership is transferred to the zero address. If the owner is transferred to an address that is not in your control or does not have smart contract capabilities, all functions with
onlyOwner
modifier will be locked forever , as the contract owner address0x0
is reserved and cannot be used to send transactions.Impact
All functions with
onlyOwner
modifier will be locked forever, for example retireVault(), setOutputToNativePath(), setDeviation(), setTwapInterval(), setPositionWidth(), setRewardPool()Code Snippet
for example,
https://github.com/sherlock-audit/2024-05-beefy-cowcentrated-liquidity-manager/blob/main/cowcentrated-contracts/contracts/strategies/velodrome/StrategyPassiveManagerVelodrome.sol#L793-L800
Tool used
Manual Review
Recommendation
You might want to consider a solution where the contract ownership is transferred to a protocol-owned emergency address from which specific mitigation actions can be taken.