The setPassword
function allows any address to set a new password. The function does not check if the caller (msg.sender) is the owner of the contract. This means that any user can overwrite the password, potentially locking out the legitimate owner.
High. Unauthorized users can change the password without the owner's knowledge or consent, leading to potential loss of access for the owner.
Implement access control on the setPassword function to ensure only the owner can modify the password. This can be achieved by adding a check similar to the one in the getPassword
function.
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.