Password can be set to nothing
The purpose of the contract is to store a secret password. However, the setPassword function also accepts empty strings as input parameters. In reality, there's no app/website that accepts empty passwords.
POC. Add this test to PasswordStore.t.sol
Then call it as:
Result:
The password can be set to nothing
Manual review
Add code to setPassword function that enforces non-empty strings
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.