The password is stored in s_password which is publicly stored in spite of the "private" keyword
The password is stored in s_password which is publicly stored in the contract at the second storage
slot (index 1).
Anyone can access it
foundry cast:
cast storage <CONTRACT_ADRRESS> 1
• Do not put sensitive data on blockchain.
• If it is really needed, at least encrypt it with a secure algorithm and a key only you know.
• In case of password before encryption, hash it to do compararison
• Use a privacy librairy like zama fhEVM
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.