s_owner and s_password can be easily accessed despite the private variables. A simple script such as the one shared below would be able to access the variables, resulting in the password being exposed
Simple script to access private variables:
s_password can be accessed invalidating the use of this contract
Hardhat
Do not store passwords on the blockchain
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.