The contribute function accepts amount = 0, which is impractical.
Vulnerability Details:
The vulnerable code is in the contribute function:
rust
No Validation: Zero contributions are processed.
Impact:
User Experience: Wastes resources on meaningless transactions.
Tools Used: Manual Review
Recommendations:
Add minimum:
rust
Add new error code:
rust
If user contributes 0 SOL, the `contribution.amount` will be updated with 0 value. There is no impact on the protocol. Also, the new contributers should pay for account creation, therefore there is no incentive someone to create a very huge number of accounts to contribute zero amount.
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.