The function setPassword
does not have any access control. This means that anyone can set the owner password.
No modifier such as onlyOwner
is present. A call to setPassword
with any password from any address will result in updating the s_password
contract storage variable accordingly.
The owner password can be modified by someone else.
Make PasswordStore inherit OpenZeppelin's "Ownable.sol" and add the onlyOwner
modifier to setPassword
.
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.