The contract owner can set the winner of the tournament, he can bet on his decided winner
Likelihood: Low
Contract owner bets on his favorite team, then at the end of the tournament, he set his choice to be the winner
Impact:
This is not fair for other players
Centralized risk: if the contract owner loses his private key, the attacker can decide his betting choice to be winner
PoC of owner betting and setting his choice to be the winner
Add this test case to briVault.t.sol
Use a decentralized oracle VRF like Chainlink VRF for winner decision
Use multisig wallet for contract owner to mitigate centralized risk
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.