Missing owner check in setPassword Function
A malicious user can alter the s_password variable thus compromising the integrity of the contract
Manual Review
Use OpenZeppellin's Ownable contract and make the setPassword Function exist with the onlyOwner modifier.
OR
add the following line of code : if(msg.sender != s_owner) revert PasswordStore__NotOwner(); before the line of code that changes the password to ensure only the contract's deployer can alter the 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.