Any wallet can set a new password.
The intention of this contract is to only allow the owner of Password store to be able to set the password. However, as the method setPassword does not require the sender to be the owner, any wallet can set a new password.
As soon as a malicious actor wants to overwrite passwords they can do it freely, so it makes this app unusable.
Add the same requirement added in the view function :
if (msg.sender != s_owner) {
revert PasswordStore__NotOwner();
}
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.