Even though the s_password
variable is private, it's not truly hidden. Anyone can inspect the contract's storage on the blockchain and retrieve the password.
The contract aims to store a private password securely. However, the current implementation does not ensure the privacy of the stored password
The s_password
variable, despite being marked as private, can be accessed by inspecting the contract's storage directly on the blockchain.
Any user can retrieve the stored password, compromising its confidentiality.
Manual code review.
Consider encrypting the password offchain before storing it onchain.
Decryption should also happen offchain to maintain the password's secrecy.
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.