Anyone can see the stored password in the contract.
Blockchain, by itsnature is public, anyone can see the variables sotred in it.The s_password state variable visibility is private, this means that can only be accessed by the contract itself but not significates that in the blockchain is not visible. An attacker can utilize a blockchain explorer to view the value of the password. This breacks completly the core functionallity of the contract.
Anyone can see the value of the password, causing the theft of it.
Manuel review.
A solution could be store the hash of the password for example using keccack256().
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.