Anyone can set a new password by calling PaswordStore.setPassword(string)
. Thigh is a high severe bug of lacking access control.
PaswordStore.setPassword(string) on line26 has no access control, so any one can set a new password by providing the string as parameter.
High/Severe
Foundry
consider adding access control by using onlyOwner
modifier of openzeppelin's Ownable contract.
Anyone can call `setPassword` and set a new password contrary to the intended purpose.
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.