The Deposit function allows malicious users to sign up for the event without contributing any funds. By setting their deposit amount to zero, they can bypass the payment requirement and still mark themselves as participants in the Christmas dinner event, despite making no financial contribution. This loophole enables users to attend the event for free, undermining the intended contribution system.
Users can attend the Christmas dinner party without paying, resulting in the host being short of funds needed to organize the event properly.
Add the below foundry test to the test file, to attest the validity of this finding.
To address this issue, consider implementing a verification mechanism to ensure that no user can sign up without making a payment.
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.