Using weak PRNG allows the challenger to predict the outcome of the battle.
Since the winner is decided using a random number that is generated using values like block.timestamp
, and block.prevrandao
, the challenger is able to precompute the same number and predict if they're going to win the battle or not. If they do, they'll go ahead and call the RapBattle::goOnStageOrBattle
function otherwise they won't.
Allows the challenger to manipulate battle outcomes.
Foundry
Use ChainLink VRF to generate random numbers.
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.