Lack of Access Control
The contract lacks proper access control, allowing anyone to set a new password. The function name setPassword can be misused which is present on line 26 in PasswordStore.sol
Malicious actors can change the stored password, compromising the system's security.
Manual review
Implement access control to ensure only the owner can set the password. You can use the require statement to check if msg.sender is the owner or IF condition can also be used with custom errors.
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.