Function 'getActivePlayerIndex' does not check for address(0)
Function 'getActivePlayerIndex' does not check for address(0) thus allowing address(0) to be searched for within 'players' array.
Depending on which addresses previously called 'refund' function (which leaves behind address(0) in the 'player' address), the 'getActivePlayerIndex' function would return different results -> the first occurrence of address(0) in the 'players' array.
Validate the input against address(0)
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.