Weak Randomness in the RapBattle.sol::_battle
can result in a predictable winner or be influenced by users.
Because hashing block.timstamp
, msg.sender
, block.prevando
does not create a random number.
Instead, it creates a predictable number, Malicious contracts can manipulate this function and predict the winner of the rapBattle. This can break the system eventually
A Malicious attacker can attack this function and be able to predict the winner of the rapBattle. This will break the system and reward the wrong users in the rapBattle.
Manual Review
Weak Randomness is a popular attack vector, so it is always advised to use Oracles like Chainlink VRF to generate random numbers for on-chain purposes.
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.