Anyone change the users password
setPassword() has no check to revert if the caller is not the owner of the contract. So anyone calling this function can overwrite the password with a new one of their choice.
users password can be overwritten
foundry
add a check+revert if the caller is not the owner
ie:
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.