DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: low
Invalid

Lack of address(0) check in constructor

Summary

Lack of address(0) check in constructor

Vulnerability Details

Constructor does not check for address (0) that can lead to accidently set 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 is zero);
Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Zero address checks

Support

FAQs

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