The password of the contract can be set by any user.
The setPassword
function is used to set new password. However this function lacks access control and anyone can call it and set new password.
Password can be changed by anyone.
Manual Review, Foundry
Add the following test case to the PasswordStore.t.sol
:
Add access control to setPassword
, for example:
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.