Ownership can be changed by anybody. as every-one can access changeOwner(),
onlyOwner,modifier or required() is not created for changing ownership of the contract ,so anyone who has access to the contract abi function of "changeOwner()" can change ownership and withdraw funds of both initial used while creating contract of "0.1 ether" + "remaining balance of the contract"
No modifier or require is used to restrict other users from executing changeOwner function.
anyone who has access to the contract abi function of "changeOwner()" can change ownership and withdraw funds of both initial used while creating contract of "0.1 ether" + "remaining balance of the contract".
How could it harm the protocol or users?
By changing the ownership "Attacker" can do:-
1.setBoxPrice
2.addReward
3.withdrawFunds()
(VScode) Manually
Add restriction for changing Ownership so only owner can change ownership.
OR
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.