code-423n4 / 2022-05-bunker-findings

1 stars 0 forks source link

Comptroller Admin Can Update Certain Parameters Causing Unintended Protocol Behaviour #125

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Lines of code

https://github.com/bunkerfinance/bunker-protocol/blob/752126094691e7457d08fc62a6a5006df59bd2fe/contracts/Comptroller.sol

Vulnerability details

Impact

The deployer of the Comptroller.sol contract acts as the admin and has access to setting certain protocol parameters. Because of this, the contract admin can do the following:

Recommended Mitigation Steps

Ensure the admin is restricted to held behind a timelock and not a multisig (managed by the team) as stated by the sponsor. Ideally, a governance token would provide the best security.

bunkerfinance-dev commented 2 years ago

We don't find any sort of "admin can rug" type of issue as high severity; in the future we will replace the admin with a timelock and/or governance.