The setPassword function, doesnt check who is the msg.sender. This way user who is different from the owner can update the password.
The following forge test can be seen to demonstrate these findings:
Given the vulnerability described has a high likelihood and high impact, we evaluate the severity to HIGH.
A function modifier onlyOwner can be used, to validate the msg.sender in both methods: setPassword and getPassword.
Example:
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.