There is no check through modifier or require statement to ensure that password is set by owner only. Thus anyone can set the password here.
This could lead to setting of password by anyone and owner would not have the required access
Foundry
Write modifier for onlyOwner and implement it in both functions.
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.