Getter Function Reverts
The smart contract PasswordStore.sol contains a problem with getter function at getPassword function whereby the getter function reverts if the sender is not the owner of the contract. Generally, getter functions should not revert but give a default value instead.
The output is shown below.
Low Impact (more like QA), as view functions do not modify storage variables.
Manual Review
If the idea is to continue storing password in state (knowing that private variables are still exposed publicly), instead of reverting if msg.sender
is not the owner, return an empty string instead.
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.