constructor should guard against zero addresses #20
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
Handle
jayjonah8
Vulnerability details
Impact
The constructor in LockeERC20.sol does not check to make sure the depositToken is not a zero address. This can help guard against costly mistakes during deployment.
Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/LockeERC20.sol#L56
Tools Used
Manual code review
Recommended Mitigation Steps
require(depositToken != address(0)) should be added to the constructor in LockeERC20.sol
The text was updated successfully, but these errors were encountered: