https://github.com/Cyfrin/2024-09-mystery-box/blob/main/src/MysteryBox.sol#L111
the changeowner function is used to set a new owner
the changeOwner function lacks access control, that means it can be called by any one, and that is not intented by the protocol
since the is no access control in the changeOwner function a bad user can call this function and set the new owner of the contract to a malicious address which will disrupt the intended function of the contract
manual
an access controll should be added, making the function to be called by only owner
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.