Anyone can set the password.
Anyone can read the password.
Anyone can set the password. No access control is present on the solidity setPassword.
Anyone can read the password directly from the storage slot.
Private functions and state variables are only visible for the contract they are defined in and not in derived contracts, where visible mean visible for use.
Anyone can read private functions and state variables.
You can add the following function to solidity PasswordStoreTest and run forge test -vvv.
If you look at the logs you will see that solidity secret_password and solidity retrieved_password are the same.
Anyone can set the password.
Anyone can retrieve the password.
Foundry
Add access control to solidity setPassword function.
Use a private key to encrypt the password and store the encrypted password on blockchain.
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.