Anyone can set new password using setPassword()
function but that shouldn't be the case.
Only owner who deployed this contract should be able to set new password but anyone can call setPassword()
function to set new password.
Malicious user can set the password to random which will grief the owner as the owner will retrieve incorrect password.
Manual Analysis
Add proper access control to the setPassword()
function like:
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.