Initilaize functions should check for address(0) #129
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
jayjonah8
Vulnerability details
Impact
The initialize functions like the one in Malt.sol does not check if the address exits before setting it. This can lead to errors while calling initialize during deployment.
Proof of Concept
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Auction.sol#L142
Tools Used
Manual code review
Recommended Mitigation Steps
add require checks in initialize functions like require("address" != address(0), "contract does not exists")
The text was updated successfully, but these errors were encountered: