Describe the normal behavior in one or more sentences: Only the owner can set the winner once the tournament event has completed.
Explain the specific issue or problem in one or more sentences: There is no test to verify this is the case.
Likelihood:
Reason 1 // Describe WHEN this will occur (avoid using "if" statements): When the above function is run, no test checks that the owner is the person selecting the winning team.
Reason 2 I've set the likelihood to low as after running tests (using the mitigation below) there was no failure in the test.
Impact:
Impact 1: When this function fails, any user could set themselves as the winner.
Impact 2: All funds lost to non-winners.
// I don't believe the risk would occur as the test below passed.
//I also ran a fuzz test to be sure which also passed,
// due to the onlyOwner function being a general access control mechanism.
Adding the test below ensures that we're checking only the owner can set the winner.
This is owner action and the owner is assumed to be trusted and to provide correct input arguments.
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.