Function setPassword() does not implement checks to ensure only s_owner can set the password.
The setPassword() function stores the newPassword in s_password without verifying that the msg.sender is s_owner.
The following test case can be used to check for this issue:
Unauthorized addresses can set and overwrite the stored password.
foundry
Update setPassword() to implement an owner check:
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.