The setPrediction()
function currently lacks any role-based access control. This oversight allows any user to call the function and potentially alter predictions.
Without proper access control, unauthorized players can modify predictions made by other players. This could enable malicious actors to change predictions to the Pending
result, leading to incorrect outcomes and undermining the fairness of the game.
Manual review and testing
Restrict access to the setPrediction()
function by applying an onlyThePredicter()
modifier. This will ensure that only authorized users can call this function.
This modification ensures that only designated roles, likely the contract owner or a trusted entity, can set or modify player predictions. This measure protects the integrity of the game and prevents unauthorized manipulation of predictions.
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.