There is an ownership error in the setPassword function. Any external user can access this function and change the owner's password.
It is imperative to never store private data on a public blockchain.
Ownership error on line 26 allows any user to call the setPassword function and modify the password.
Storing sensitive information, such as passwords and usernames, on a public blockchain is risky. Lines 13 and 14 reveal the s_owner and s_password to anyone.
The vulnerability enables unauthorized access to change the password and access the contract's storage variables.
manual review
Implement a modifier for onlyOwner and apply it to both functions. This approach not only secures the system but also optimizes gas usage.
Never underestimate the risk of storing private information on a public 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.