Description:
The contract does not validate if a user is depositing a non-zero amount when signing up or contributing tokens. This lack of validation allows a user to sign up or contribute without depositing any tokens, which could lead to participants being incorrectly added without making an actual contribution. This vulnerability can be exploited by malicious users to gain access to the event without making any real deposit.
Proof of Concept:
A user can call the ChritsmasDinner::deposit function with a zero amount, thus being added to the participant list without contributing any tokens.
This issue can lead to the inclusion of non-contributing users in the participant list, potentially allowing them to access event resources without paying. This could undermine the event’s purpose, as non-paying users could receive benefits reserved for contributors, leading to an unfair distribution of resources or rewards.
aderyn, slither, manual, foundry forge
Add validation checks in the ChritsmasDinner::deposit function to ensure that a non-zero amount is deposited when a user signs up or contributes.
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.