The MysteryBox::openBox() function uses block.timestamp and msg.sender to generate randomness for the rewards. These values are predictable and can be manipulated by an attacker to gain favorable rewards.
The attacker can manipulate the reward generation process to receive more valuable rewards by controlling the transaction’s timestamp and address.
Visual Studio Code
Solidity
Foundry
Use a more secure source of randomness, such as Chainlink VRF or a method that introduces more entropy.
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.