The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Constructor lack 0 address check

Summary

Lack of address (0) check in constructor

Vulnerability Details

Constructor does not check for address (0) that can lead to accidently setting address to 0x00.

Impact

Setting address (0) will lead to unexpected behaviour like loss of control over all owner based function.

Tools Used

Manual code Review

Recommendations

Check effect interaction pattern should be followed and require condition should be placed inside constructor.

require(address != address (0), address should not be zero);
Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.