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

On-chain data can be manipulated and used in attacker favor

Summary

On chain data should not be used to generate a random number since they could be manipulated by miners or validators

Vulnerability Details

If the vulnerability is exploited by a miner. The protocol can lose its fairness and the winner could be always determined alongside the NFT.

Impact

Funds and NFT loss.
Raffle fairness (McDonald lottery :).

Tools Used

Manual review

Recommendations

Consider using an Oracle like "Chainlink" which generates Verified Random Number (VRF) that cannot be expected or manipulated

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

weak-randomness

Root cause: bad RNG Impact: manipulate winner

Support

FAQs

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

Give us feedback!