Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing zero address check

Summary

Missing zero address check

Vulnerability Details

In the PuppyRaffle.sol contract constructor, where the _feeAddress is set, there should be a check condition that requires the passed address from the constructor to not be a zero address.

Impact

There is a possibility of transferring contract fees to a zero address later when the withdrawFees() function is clicked later; if not, a zero check is provided.

Tools Used

Manual Review

Recommendations

Consider adding a zero address check before setting the _feeAddress address property.

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Zero address checks

Support

FAQs

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

Give us feedback!