increaseValuesOfParticipants
funciton uses block.timestamp
, block.prevrandao
, msg.sender
to generate random value.
However these 3 values are fixed at each block, so user can easily guess the random value.
As you can see, random is generated by block.timestamp, block.prevrandao, msg.sender, and user can be guess all these value in current block.
So user calls this function five times if random value is even number in given block, and user will become selected ram in result.
Malicious actor can call Attack.becomeRam()
function to become selected ram.
User can guess random value easily and exploit it to become selected Ram.
Manual review
Consider using more complex random logic like third party VRF - Chainlink VRF.
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.