getPassword should emit an event so that the contract's owner has a record of every time the function was called. Normally I think you only emit events for state changes but when you are dealing with something as sensitive as a password, I think it's worth knowing whenever someone has accessed it. You do have a limitation that only the owner can call getPassword, but what if someone accesses your private keys and uses them to find out your (unencrypted) password.
getPassword does not emit an event:
Someone could access your password and you wouldn't know since no event is emitted.
Manual review
Add an event:
Then modify the getPassword function:
Consider also using a blockchain notification app to get a notification of the emission of all events for this contract.
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.