Lack of access control in PasswordStore.setPassword()
let non-owner user to set a new password
Based on the context, PasswordStore.setPassword()
should be onlyOwner as it should only be allowed to be called by the owner.
However, PasswordStore.setPassword()
lack access control in the current implementation.
An non-owner users can call setPassword()
to set another new password, when the owner tries to get the previously set password, he gets an incorrect password.
Manual Review
PasswordStore.setPassword()
should be onlyOwner or check if msg.sender is the owner.
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.