The PasswordStore::setPassword()
function does not check that msg.sender
is the owner before updating the password.
Any address can call setPassword() and change the stored password without being the owner.
Loss of password security and control, stored password can be changed by unauthorized addresses.
PoC:
Foundry
Slither
Add an authorization check that msg.sender must equal the owner before updating the password.
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.