getPassword()
can be break by triggering setPassword()
first
getPassword()
is ok but bug is present in setPassword()
by hitting that function will become the owner of the contract and read sensitive data.
Anyone can hit setPassword()
and set new password after that that user can get password by triggering getPassword()
.
Manual code review
Use modifier or make require statement for checking that user must be owner in setPassword()
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.