The changeOwner function allows anyone to change the contract's ownership without restrictions or authorization checks.
MysteryBox.sol/Line
Anyone can call this function and take control of the contract, leading to loss of control for the original owner, and potentially leading to malicious actions like withdrawing all funds.
Foundry
Add an ownership check to ensure only the current owner can change ownership :
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.