The setPassword() allows anyone to set password.
Here we have a function:
It is an external function and is not using any modifier which will put restriction on who can set password. As result any caller can set the password by just calling this function.
As this function allows anyone to set password the risk is high.
Manual inspection.
Use Openzeppelin's Ownable.sol contract's onlyOwner modifier on this function.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
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.