The setPrediction function in ScoreBoard.sol is publicly accessible, allowing anyone to make predictions without proper authorization or payment.
The setPrediction function lacks access control modifiers and is declared as public. This allows any external actor to call the function directly, bypassing the intended flow of registration, approval, and fee payment implemented in ThePredicter.sol contract.
This vulnerability undermines the entire prediction system:
Unauthorized users can make predictions without registration or approval.
The protocol loses revenue from unpaid entrance and prediction fees.
The integrity of the prediction contest is compromised.
Malicious actors could manipulate the scoring system.
Manual review
Add an onlyPredicter modifier to the setPrediction function in ScoreBoard.sol.
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.