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

The first player can enter the raffle without making any payment

Summary

The first player to enter the raffle will enter without making payment as the newplayers.length is initialized to zero making the entranceFee * newPlayers.length also equal to zero.

Reference

L80 of PuppyRaffle.sol
require(msg.value == entranceFee * newPlayers.length, "PuppyRaffle: Must send enough to enter raffle");

Vulnerability Details

Impact

Tools Used

Manual Review

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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

Give us feedback!