the teamWallet parameter are used for the onlyTeam modifier. In the state variable , proper check up should be done , other wise error in these state variable can lead to redeployment of contract. If the zero address is assigned to rebalanceManager parameter, that will fail all onlyTeam functions.
Handle
defsec
Vulnerability details
Impact
the teamWallet parameter are used for the onlyTeam modifier. In the state variable , proper check up should be done , other wise error in these state variable can lead to redeployment of contract. If the zero address is assigned to rebalanceManager parameter, that will fail all onlyTeam functions.
Proof of Concept
"https://github.com/code-423n4/2021-12-yetifinance/blob/1da782328ce4067f9654c3594a34014b0329130a/packages/contracts/contracts/YetiFinanceTreasury.sol#L29"
Tools Used
Code Review
Recommended Mitigation Steps
Add proper zero address validation.