The setPrediction
function can be called by any address, not just the ThePredicter contract, allowing unauthorized prediction settings.
The setPrediction
function is public and lacks any access control modifier, meaning any external actor can call this function and set predictions for any player.
Malicious actors can set or change predictions for other players, manipulating the game outcomes.
Manual code review
Add the onlyThePredicter modifier to the setPrediction
function:
setPrediction has no access control and allows manipulation to Players' predictions.
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.