You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor of Vault takes an address param _owner which is not checked if it is address(0). Thus, the public state variable owner can be set to address(0)
Impact
Malicious user can create Vaults with wrong address values
Solution:
Check for address(0) when assigning values to address state variables.
The text was updated successfully, but these errors were encountered:
Description of the Bug:
The
constructor
ofVault
takes an address param_owner
which is not checked if it isaddress(0)
. Thus, the public state variableowner
can be set toaddress(0)
Impact
Malicious user can create Vaults with wrong address values
Solution:
Check for
address(0)
when assigning values to address state variables.The text was updated successfully, but these errors were encountered: