Constructor Does Not Check for Zero Addresses #75
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
Meta0xNull
Vulnerability details
Impact
A wrong user input or wallets defaulting to the zero addresses for a missing input can lead to the contract needing to redeploy or wasted gas.
Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L17-L19
Tools Used
Manual Review
Recommended Mitigation Steps
requires Addresses is not zero.
require(_governor != address(0), "Address Can't Be Zero")
require(_emergency_governor != address(0), "Address Can't Be Zero")
The text was updated successfully, but these errors were encountered: