Vulnerability ID: M-09
File/Line: Asset.sol:14
Short Description: No check for diamondAddr
not being the zero address.
Code Snippet:
Any instantiation of the Asset
contract might unknowingly set the diamond
address to the zero address. This could lead to potential mishandling of functions restricted by the onlyDiamond
modifier since the zero address cannot initiate transactions.
Manual Review
Implement a check in the constructor to ensure that diamondAddr
is not the zero address.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.