private variables can be read by anyone
In the getPassword
function, it restricts access so that only owner can retrieve the password.
However, even though the variable in the contract is private, the value at blockchain is public. So, anyone other than the owner can retrieve it.
Anyone can read password value.
Manual Review
Do not store secret data in the contract.
Private functions and state variables are only visible for the contract they are defined in and not in derived contracts. In this case private doesn't mean secret/confidential
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.