Open code423n4 opened 2 years ago
Ruhum
All the other passed variables are checked. Only _whitelistAddress is ignored. This allows passing a zero function which would break the functionality.
_whitelistAddress
https://github.com/code-423n4/2021-12-yetifinance/blob/main/packages/contracts/contracts/CollSurplusPool.sol#L51-L54
none
add checkContract(_whitelistAddress)
checkContract(_whitelistAddress)
@LilYeti: This is quite niche risk during deployment but is an issue nonetheless.
resolved
Handle
Ruhum
Vulnerability details
Impact
All the other passed variables are checked. Only
_whitelistAddress
is ignored. This allows passing a zero function which would break the functionality.Proof of Concept
https://github.com/code-423n4/2021-12-yetifinance/blob/main/packages/contracts/contracts/CollSurplusPool.sol#L51-L54
Tools Used
none
Recommended Mitigation Steps
add
checkContract(_whitelistAddress)