The changeOwner function allows any external caller to change the ownership of the contract. This exposes the contract to malicious actors, who can call this function to take over ownership without authorization. This creates a significant security vulnerability, potentially leading to complete loss of control over the contract.
Any address is able to change ownership, regardless of whether it is the current owner.
Manule review
require statement to ensure that only the current owner can call this function: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.