No access control in terms of function setPassword can be very risky
No access control in terms of function setPassword. This can be very risky because the design of the contract is supposed to store the owner's password.
If there is no such access control, anyone can overwrite the password and since then the password will be a different value.
And at the same time, if the incentive is enough then anyone can front-run the owner's calling the function to change the password value. Then when the owner calls the function it will return a surprising value instead.
No access control means this contract is not supposed to work as supposed.
Manual review
set the function's access control as onlyOwner.
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.