PuppyRaffle::enterRaffle allows enter with empy array, this can be used for spamming false positive events and prejudicate other contracts that reads this ones.The function PuppyRaffle::enterRaffle can called with a empty array of newPlayers, this will ignore these both loops and call the emit for RaffleEnter with 0 players.
Impact:
Pollution from emitted events can make it difficult other contracts that reads PuppleRaffle events.
Consider add a minimum numbers of players for PuppyRaffle::enterRaffle or revert this function for empty arrays.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.