The 'PasswordStore::setPassword()' function does not check who is calling it.
As said in the function @notice, the setPassword() function should allow only the owner to set a new password.
But the function doesn't not check who is calling it.
Anyone can set a new password. The owner would not know what the new password would be.
VS code
Ensure that only the owner can call the setPassword() function.
By setting a condition.
Or by using the 'onlyOwner' 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.