In the setPassword function, Anyone can change the password by calling the setPassword function because there is no check for owner. So, Check for owner should be added in the setPassword function to prevent from the change of password by other address (except owner).
Here, In the documentation, it is mentioned that only the owner
can set a new password. But, there is no check for owner in the setPassword function. So, anyone can change the password by calling the setPassword function.
So, Check for owner should be added in the setPassword function to prevent from the change of password by other address (except owner).
password can manupilated by anyone.
Manual review
Remix
foundry
Check for owner should be added in the setPassword function to prevent from the change of password by other address (except owner).
if caller is not owner then 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.