No access control on ScoreBoard::setPrediction
resulting anyone can reset the prediction made by player without the player awareness
ScoreBoard::setPrediction
function is called when the Player pays the prediction fee and can be called again by the Players to alter their predictions without a second payment of the prediction fee. However, there's no access control on this function that restricts only rightful player can change their own prediction.
Proof of Concept:
Add the following test in test/ThePredicter.test.sol
The test will pass indicating that a stranger can easily alter the prediction made by player
Prediction made by player can be easily changed by others causing potential loss of player's reward
Manual review
Implement access control to restrict the function can only be called by rightful parties
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.