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

Missing Zero Check

Summary

No zero check in the changeFeeAddress function

Vulnerability Details

Location:

PuppyRaffle.changeFeeAddress(address).newFeeAddress (src/PuppyRaffle.sol#167) lacks a zero-check on :

  • feeAddress = newFeeAddress (src/PuppyRaffle.sol#168)

Impact

If the owner's account is compromised, the attacker could redirect the fees to their own address.

Tools Used

Audit Wizard (Slither)

Recommendations

Check that the address is not zero.

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!