Anyone can set a new password via setPassword()
.
No ownership check is made in setPassword()
.
High. The issue is easy to find and the attacker can obtain access to the contract.
Manual check.
Check if msg.sender == owner
directly in setPassword()
or create an onlyOwner()
modifier and apply the modifier to setPassword()
. Revert if msg.sender
is not the owner.
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.