Severity: MEDIUM
Description:
The changeParticipationStatus function lacks proper state change validation and does not restrict the timing of when it can be called. This can lead to unintended behavior if users attempt to change their participation status after the deadline has passed.
Impact:
Users could potentially manipulate their participation status after the deadline, affecting the distribution of funds or participation rewards.
Proof of Concept:
The following test demonstrates this behavior:
Recommended Mitigation:
Restrict changes to participation status before the deadline. This can be achieved using a require statement or by using the beforeDeadline modifier:
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.