The contribute function allows contributions to exceed the funding goal, leading to potential overfunding.
The vulnerable code is in the contribute function:
rust
No Limit: No check prevents amount_raised from exceeding goal.
Logic Disruption: Overfunding may confuse campaign status or payout logic.
User Experience: Contributors may overpay unintentionally.
Manual Review
Cap contributions:
rust
Add new error code:
rust
Typically the crowdfunding campaigns allow contribution after the goal is achieved. This is normal, because the goal is the campaign to raise as much as possible funds. Therefore, this is a design choice.
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.