The setPassword Function is lacking access control
The setPassword function is supposed to be used to set the password of the contract however it lacks an access control protection which means that anyone will be able to set the password of the contract.
anyone will be able to set the password and access the contract therefore there the contract is compromised
manual analysis
consider adding a modifier for access control so that only the owner of this contract will be able to set the password of this contract as below.
then you can now protect our function from malicious users as below
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.