setPassword()
function visibility is set to external and there is no access control or a logic to revert the function if the caller of the function is not msg.sender
. Any EOA or contract can change the password.
Anyone can change the password
Manual audit
Adding revert can be a solution to prevent others to change the password with the setPassword()
function similar to what has been done in getPassword()
function.
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.