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

Missing user input validation on `PuppyRaffle::changeFeeAddress` can lead to address(0) being set as the `feeAddress`.

Summary

Missing user input validation on PuppyRaffle::changeFeeAddress can lead to address(0) being set as the feeAddress.

Impact

This is a non-issue as ether can't be sent to address(0) and the owner only needs to set a new feeAddress and withdraw the fees there.

Tools Used

Manual review

Recommendations

function changeFeeAddress(address newFeeAddress) external onlyOwner {
+ require(newAddress != address(0), "fee address can not be the Zero address");
feeAddress = newFeeAddress;
emit FeeAddressChanged(newFeeAddress);
}
Updates

Lead Judging Commences

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

weak-randomness

Root cause: bad RNG Impact: manipulate winner

Support

FAQs

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

Give us feedback!