admin
can set marketplace
to malicious address
#306
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
invalid
This doesn't seem right
Lines of code
https://github.com/code-423n4/2022-06-illuminate/blob/3ca41a9f529980b17fdc67baf8cbee5a8035afab/lender/Lender.sol#L145
Vulnerability details
Impact
admin
couldsetMarketPlace()
with a malicious contract that is upgradeable or doesn't contain the correct address for the fixed rate markets, leading to user funds being lost or stolen.Proof of Concept
admin
can setmarketPlace
to any address.https://github.com/code-423n4/2022-06-illuminate/blob/3ca41a9f529980b17fdc67baf8cbee5a8035afab/redeemer/Redeemer.sol#L70-L76
Tools Used
Manual Review
Recommended Mitigation Steps
Only allow whitelisted
marketPlace
addresses that can legitimately be used to fetch the addresses of all the fixed rate markets.The text was updated successfully, but these errors were encountered: