Critical setPassword Function Lacks Access Control
Per the developer's notes, the setPassword function is intended to be callable only by the owner. However, this function currently lacks any access control checks, making it callable by anyone.
Anyone can change the password.
Manual review
Create an onlyOwner modifier and use it on functions that should be callable only by the owner.
Consider utilizing OpenZeppelin's Ownable contract, which already provides the onlyOwner modifier.
Use the same logic in the getPassword function within the setPassword function.
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.