The setPassword() function in the PasswordStore.sol contract omits important authorisation (AuthZ) checks, allowing anyone to update the password value.
The contract is not checking whether the sender is actually the contract's owner while calling setPassword().
Anyone is able to modify the password to an arbitrary value.
Foundry, VSCode, Remix
Implement an additional check ensuring that only the contract's owner is able to set the password. It could look as follows:
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.