Anyone can set a new password by using setPassword function since it is an external function
https://github.com/Cyfrin/2023-10-PasswordStore/blob/7a2fc760235c4f4809511186ff9a061c2ec68634/src/PasswordStore.sol#L26-L29
Attackers can choose any password they want and set it as new password, then they will control the password and do anything they want to the system
Manual review
Add onlyOwner modifier to setPassword function, guarantee only the owner can set new password
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.