Closed code423n4 closed 2 years ago
gzeon
setGuardian incorrectly set governance in IbbtcVaultZap.sol
setGuardian
https://github.com/Badger-Finance/badger-ibbtc-utility-zaps/blob/6f700995129182fec81b772f97abab9977b46026/contracts/IbbtcVaultZap.sol#L118
_onlyGovernance(); governance = _guardian; }``` ## Tools Used ## Recommended Mitigation Steps
Agree with the finding, there seems to be a bunch of these #10 #31
merging with #75
marking invalid as issues are merged. Treating the two issues as one to keep it fair with other wardens.
Handle
gzeon
Vulnerability details
Impact
setGuardian
incorrectly set governance in IbbtcVaultZap.solProof of Concept
https://github.com/Badger-Finance/badger-ibbtc-utility-zaps/blob/6f700995129182fec81b772f97abab9977b46026/contracts/IbbtcVaultZap.sol#L118