Anyone can set a new password
Notice says: @notice This function allows only the owner to set a new password.
But function don't have modifier or security check on msg.sender.
Anyone can set a new password overwriting the previous one.
Manual review
Add the line:
require(s_owner == msg.sender, "Not owner")
or by using the custom error:
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.