Add the require statement or the if-revert statement in the setPassword function. Because only the owner can set the password.
if(msg.sender != s_owner) {
revert PasswordStore_NotOwner();
}
If you not written require statement. Anybody can set the password.
Mannual
Add Checks. Follow checks, effects, interactions.
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.