Weak random number generator in ChoosingRam::increaseValuesOfParticipants
allows anyone to immediately become ram.
Weak random number generator in ChoosingRam::increaseValuesOfParticipants
allows anyone to wait for the right combination of block.timestamp, block.prevrandao and msg.sender and can immediately become ram.
Proof of code: add this function to Dussehra.t.sol
An address can guarantee they become ram in one transaction. However, due to another bug (isRamSelected not being set to true when a users nft becomes selectedRam
), this bug doesn't allow a user to steal funds (gaurantee winning) because the winner can only be decided by the organizer calling ChoosingRam.sol::selectRamIfNotSelected
. Therefore I put this as low risk.
Manual review
Use better randomness such as 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.