Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

Weak randomness in ChoosingRam::increaseValuesOfParticipants allows anyone to increase value to become ram

Vulnerability Details

Hashing msg.sender, block.prevrando, block.timestamp together creates a predictable final number. A predictable number is not a good random number. Malicious users can manipulate these values or know them ahead of time to increase the value and become Ram themselves.

Impact

Any user can become the Ram of Dussehra, winning the money and increasing the value of their participation. All characteristics have the same true value since you can choose the Ram.

Tools Used

Manual Review

Recommendations

Consider using an oracle for your randomness like Chainlink VRF.

Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic
Assigned finding tags:

Weak randomness in `ChoosingRam::increaseValuesOfParticipants`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.