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

Missing Zero address validation

[L-3] Missing Zero address validation

Description:

There is no place that checks if an address is the address zero

Impact:

Low

Tools used:
manual, foundry

Proof of concept:

function testForZeroAddress() public {
address[] memory players = new address[](5);
players[0] = playerOne;
players[1] = playerTwo;
players[2] = playerThree;
players[3] = playerFour;
players[4] = address(0);
puppyRaffle.enterRaffle{value: entranceFee * players.length}(players);
}

Recommended mitigation:

Add checks if a participant is the zero address

Updates

Lead Judging Commences

patrickalphac 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.