Any third party can just set/reset the password of the contract irrespective of whether or not they're the owner of the password store contract
The setPassword
function is vulnerable in the sense that it lacks access control checks that should enforce that only the owner/owner's address can call and set a password.
With this vulnerability, the owner will probably always end up seeing a new password has been set every once in a while by others after they've initially set one themselves.
Manual review
Enforce access control in the setPassword
function like you did with the getPassword
function
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.