An important function is callable by anyone.
The function setPassword() (line 26) can be called by anyone, allowing users to change the owner's stored password.
It disrupts the protocol functionality. The main use case for this contract, saving owner's private password, is no longer viable since everyone can change it.
No Tools.
Add logic to the function so that only the owner can call it, just like in the function getPassword() below.
Adding a modifier with this logic is a must, leaving the code more readable and avoiding repeating the same logic over and over again.
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.