The password intended to keep on a private storage variable (s_password) can be retrieved by anyone.
The state private variable s_password
can be seen public via em.storage, hardhat, foundry tools with the help of RPC calls where EVM stores the data on given slots. So password can be used to exploit the owner. The below snippet can be used to retrieve the password.
Severe/High - depends on the value the password holds.
Foundry => attack test
Do not store sensitive data on EVM. Store it on a private paper notes or use lighthouse protocol to store data with private wallet. And only when you have the private key, the data can be retrieved.
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.