Any EOA can update owner's password
Access modifier setPassword
is external
, but it does not implement any authentication mechanism, like onlyOwner
.
This allows any EOA to update the state variable called s_password
freely.
Very high.
Manual inspection
Implement OpenZeppelin's Ownable
contract for authenticating the owner of the PasswordStore.
Then, add onlyOwner
modifier to the setPassword
function to allow only the owner to set 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.