People generally are expected to only be able to vote after the MartenitsaVoting::startVoting
has been called by the owner. However, this is not the case as users can vote upon deployment of the contract. The issue here is that MartenitsaVoting::voteForMartenitsa
does not have any implementation which checks for whether the vote has started but checks if they have ended.
From the POC above, it can be deduced that upon deployment, any user can cast their vote. This however does not result in any movement of funds but the protocol does not work as intented.
Add extra checks in MartenitsaVoting::voteForMartenitsa
to ensure that voting can only start when initiated.
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.