Description:
The setCountry() function has no time restrictions and can be called by the owner at any time, even after users have deposited and joined teams. This allows the owner to change team names after users have made their bets, potentially causing confusion or malicious manipulation.
Impact:
Owner can change team names after users bet
Users' bets reference changed team names
Potential for confusion or manipulation
Trust in contract diminished
Proof of Concept:
Mitigation:
Add a flag to prevent changing teams after they're set, or add time restriction:
This is owner action.
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.