attackers can look at contract transactions to determine password stored in the state of the contract and retrieve it
Private variables are not directly readable by a user or a contract, however, this doesn’t restrict anyone from reading the state of the contract.
Add code to PasswordStore.t.sol
for POC:
Password can be read by not owner
Manual Review / Foundry
Any private data should either be stored off-chain, or carefully encrypted
Store hashed password use for verify only
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.