The PasswordStore
smart contract allows anyone to set the password, which contradicts its intended functionality of storing a private password, as according to the Natspec only the owner should be able to store the password
The setPassword
function lacks access control, allowing any address to update the stored password. This is a severe security flaw as it should only be accessible by the contract owner.
This vulnerability compromises the integrity and security of the password storage system. It means that unauthorized parties can alter the stored password, potentially leading to unauthorized access.
Manual Review
Implement an access control mechanism, such as a modifier or function modifier, to ensure that only the owner of the contract can 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.