The withdraw
function in ThePredicter
contract makes external calls inside a loop, which could lead to a denial-of-service attack.
In the withdraw
function:
The function calls an external contract (scoreBoard.getPlayerScore
) for each player in the loop.
As the number of players increases, the gas cost of this function will increase too. This could lead to the function hitting the block gas limit, locking funds in the contract.
Manual code review
Modify the ScoreBoard
contract.
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.