Anyone can set a new password.
setPassword function allows anyone to set a password.
Anyone can change the password, so there is no point of having an owner for the contract. Owner does not have control over the password.
Manual
Add a modifier onlyOwner that checks if the msg.sender is equal to s_owner. An alternative solution would be having an if statement that checks if the msg.sender is equal to s_owner in the setPassword function, if not revert with error 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.