ADMIN SETUP SHOULD BE A TWO STEP PROCESS #105
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
invalid
This doesn't seem right
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Lines of code
https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/marketplace/MarketPlace.sol#L109
https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/lender/Lender.sol#L129
https://github.com/code-423n4/2022-06-illuminate/blob/912be2a90ded4a557f121fe565d12ec48d0c4684/redeemer/Redeemer.sol#L62
Vulnerability details
Impact
The
MarketPlace.setAdmin()
,Lender.setAdmin()
&Redeemer.setAdmin()
logic should be a two step process (one function to propose and another one to adopt) in order to prevent losing unexpectedly the ownership of the contract. If the ownership is lost somehow, there is no way to claim it back and the whole functioning of the protocol will be compromised.Recommended Mitigation Steps
Regarding the implementation itself and further communications:
address(0)
The text was updated successfully, but these errors were encountered: