The nested loop checking for duplicate players in the PuppyRaffle::enterRaffle function can potentially lead to a Denial of Service attack
If the players array becomes too large, the gas required to execute this function could exceed the block gas limit
This limitation can prevent legitimate users from participating in the raffle
Foundry
Instead of checking arrays in a nested loop, we should use a mapping to check for duplicates when entering the raffle.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.