The PasswordStore::setPassword
function is designed to allow only the owner to set a new password. But the way it is implemented allows anyone to set a new password.
The function does not implement any access control, such as a modifier or a require where msg.sender can be checked.
The protocol does not works how it should, due to the fact that any user can change the password.
Foundry
The PasswordStore::setPassword
function must be modified to check the msg.sender. One possible way is the following:
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.