Marking a variable as private only makes the variable not visible to other contract but everyone can find the value of the variable from its storage slot. Therefore, s_password is visible to everyone. Anyone can retrieve the password from the storage of the contract.
This contract is highly vulnerable to attacks.
This has high impact on the security of the contract. since anyone can find the password.
It's better to not to store the confidential 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.