Description: Using the ChristmasDinner::changeParticipationStatus
function anyone can become a participant even without depositing any funds to the contract, until the deadline is not passed yet.
Impact: Anyone can become a participant and attend the event without depositing
Proof of Concept:
User calls ChristmasDinner::changeParticipationStatus
before the deadline
User is a participant now
PoC Code
Add following test:
Recommendation: Check in the function ChristmasDinner::changeParticipationStatus
if the user has any funds in the contract, to see if he has deposited any funds before. Only after the check change the users participant status to true.
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.