Anyonce can change the password
setPassword
doesn't check if the msg.sender is the owner of the store. Anyone can call this function and update the password.
Password can be changed by anyone. Victim's storage will be violated and they won't be able to retrieve the true password.
Validate that msg.sender is the owner of the store, just like in getPassword
. It's better to move that logic into modifier onlyOwner
so that code could be reused.
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.