Description: Hashing msg.sender
, block.timestamp
, and block.prevrandao
togather and then %
by totalBattleSkill
create predictable find number. A predictable number is not a good random number. Malacious users can manupulate this values to choose winner of the RapBattale themselves.
Impact: Any user can infulance the winner of the Rapbattle, winning the money. Making the entire RapBattle worthless if it becomes a gas war as who win the RapBattle.
Proof of Concept:
Validators predicting block.timestamp
and block.prevrandao
can significantly manipulate their participation.
Users can modify their message sender value, making their address the preferred one to determine the winner.
Transactions, such as select winner, can be reverted by users if the result doesn't meet their satisfaction.
Recommended Mitigation: A cryptographically verifiable random number generator, such as Chainlink VRF, could substantially mitigate such issues.
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.