The random value is generated using block.timestamp and msg.sender. This is not secure and can be exploited. Miners can manipulate the block.timestamp, and attackers could potentially make multiple transactions or use different addresses to influence the outcome. This weak randomness can lead to predictable outcomes, allowing users or miners to manipulate the rewards.
MysteryBox.sol/Line47
Miners or attackers could influence the random value and increase their chances of getting higher rewards (Gold or Silver coins).
Foundry
Use a more secure source of randomness like Chainlink VRF (Verifiable Random Function) to ensure unpredictable outcomes.
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.