Checking for duplicates in the enterRaffle function can cause a dos attack.
Due to the nested for loops used inside the enterRaffle function a attacker can enter a large amount of his addressess in the raffle at the start of the raffle causing the players array length to increase in a large amount which would lead to high gas price for the users entering the raffle after the attacker has entered. Due to the high gas price other users won't be able to enter the raffle causing a dos.
Other players won't be able to enter the raffle due to high gas price.
Vs Code
Use mapping for checking for duplicates.
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.