Lack of access control in setPassword function
Lack of access control in setPassword function allows anyone to change the password, and not necessarily the owner can change password as it was intended.
https://github.com/Cyfrin/2023-10-PasswordStore/blob/856ed94bfcf1031bf9d13514cb21b591d88ed323/src/PasswordStore.sol#L26
The password is for the streets. If anyone can change your password, is it really YOUR password?
Manual Review
Add an onlyOwner modifier to the setPassword function, OR simply add a check that allows only the owner to be able to change 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.