Anyone can call the setPassword function to change the s_password value.
This setPassword function is intended to be only called by the owner. As the comment stated that:
"This function allows only the owner to set a new password".
However, there is no owner validation like the getPassword() function does.
Missing access control which puts the s_password in danger of being changed by anyone.
Manual Analyis
Consider adding the validation into setPassword function like 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.