The NatSpec
in the setPassword
function tells that the function is controlled by the owner
, but there is no owner
access check done in that function.
Because this function can be invoked by anyone, it can lead to other users overstepping their authority to set passwords.
Manual Review
prefix the s_password = newPassword;
code with the following conditional judgment: if (msg.sender ! = s_owner) { revert PasswordStore__NotOwner(); }
You can control the invocation of this function by setting the modifier
.
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.