In PasswordStore::setPassword() function can be set or changed by a non owner, the protocol states that only the owner is suppose to be able to set a new password.
If anyone can change the password then the owner does not fully have control over their password management system. If the owner sets the password one day a hacker can come in right behind the owner and change it instantly.
Here you can see in this test how an attacker can attack this password system.
Foundry
Use an onlyOwner modifier, Just like what is being used 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.