Any one can set new password.
setPassword function (code) has no internal checks or modifiers to make sure msg.sender is indeed the owner.
Actual password that owner set will be rewritten and lost.
None.
Similar to the check in getPassword function (code), add an if block that reverts if msg.sender is not the owner.
Even better, create a new modifier (e.g. onlyOwner) that contains the said if block and add this modifier to both setPassword and getPassword functions to make sure no one other than the owner can call these functions to modify the password / see the password.
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.