Anyone can set a new password by calling setPassword().
Despite the comment saying only the owner can set a new password, the function setPassword can be called by anyone. That means anyone can overwrite whatever password the owner had set.
High.
n/a.
Make the PasswordStore inherit from Ownable.sol from OpenZeppelin so you can add the onlyOwner modifier to setPassword.
Another option would be to skip inheritance and just declare your modifier with:
and proceed to add the modifier wherever needed.
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.