All on-chain data is public and visible to anyone. Critical data (e.g. passwords) should not be stored on-chain.
s_password
state variable is marked as private
but this does not prevent anyone from seeing what its value is because all on-chain data is public and visible to anyone.
Anyone can see the current password.
Foundry
Manual audit
Passwords and other critical data should never be saved on-chain. This is not a good use case for blockchain since all data is publicly visible. Recommendation is to store passwords in a different manner, such as a password manager software.
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.