Anyone can become the owner and drain the whole pool
In MysteryBox, there is one function called changeOwner. The function aims to change the owner of this contract.
The problem is that we lack of access control for this function. Anyone can become the owner via this function.
Anyone can become the owner and drain the pool via withdrawFunds().
Manual
Add one onlyOwner modifier for function changeOwner.
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.