https://github.com/Cyfrin/2024-09-mystery-box/blob/main/src/MysteryBox.sol#L111
The `MysteryBox.sol::changeOwner` function is set to public giving the possibility to anyone to change the `owner` with any new address (included `address(0)`)
The `MysteryBox.sol::changeOwner` function is set to public without any modifier to limit the access and there is no validation check of the input provided by the caller
All the privileges of the owner can be assigned by anyone to `address(0)` making the protocol unusable.
Manual review, Foundry
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.