Trick or Treat

First Flight #27
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Randomness Security

Summary

The random number generation uses block properties (like block.timestamp and block.prevrandao), which can be manipulated by miners

Vulnerability Details

The random number generation uses block properties (like block.timestamp and block.prevrandao), which can be manipulated by miners.

Impact

This could allow someone to predict or influence the outcome of the trickOrTreat function. Consider using a secure source of randomness, like Chainlink VRF, for critical randomness.

Tools Used

Remix.ide

Recommendations

Consider using a secure source of randomness, like Chainlink VRF, for critical randomness.

Updates

Appeal created

bube Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

[invalid] Weak randomness

It's written in the README: "We're aware of the pseudorandom nature of the current implementation. This will be replaced with Chainlink VRF in later builds." This is a known issue.

Support

FAQs

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