The MysteryBox::withdrawFunds() function allows the owner to withdraw all ETH from the contract, including funds meant for user rewards.
Users may not be able to claim their rewards if the owner withdraws all ETH, leaving the contract balance at zero.
Visual Studio Code
Solidity
Foundry
Track profits separately from funds meant for rewards, and only allow the owner to withdraw the profits.
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.