The provided code for the ThePredicter
contract allows users to make predictions without verifying if they are registered players. This oversight can lead to unauthorized access and manipulation of predictions, compromising the integrity of the system.
The function does not verify if the msg.sender
is a registered and approved player before allowing them to make a prediction. It allows the function caller to make predictions despite being is unapproved.
The unauthorized user can pay the prediction fee and benefit from the rewards by predicting a match correctly.
There should be a check in the ```makePredictions``` function that verifies msg.sender as a registered and approved player by the organizer.
makePrediction has no access controls and any unapproved user can make predictions causing an incorrect calculation and distribution of rewards.
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.