function setPassword(string memory newPassword) external is callable by anyone.
The function is callable by anyone so at any point, the password can be changed. If this password is then read by the user without knowing it was changed, it could lead to catastrophic consequences.
High, with high likelihood.
Foundry.
Extend OpenZepellin's Ownable contract and add the onlyOwner modifier to the function or add following snippet as in getPassword():
POC:
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.