The contribute methos in the program do not check if the campaign goal (fund.goal) has been reached before executing their logic. This allows contributions to exceed the goal and refunds to proceed without considering if goal has been reached, which could lead to overfunding.
Contribute Method: The contribute function allows contributions even after the fund.amount_raised exceeds fund.goal. There is no check to prevent further contributions once the goal is met.
2025-03-rustfund/programs/rustfund/src/lib.rs at main · CodeHawks-Contests/2025-03-rustfund
Contributors can add funds beyond the campaign goal, leading to potential confusion or mismanagement of funds. For example, if a campaign aims for 1 SOL but receives 2 SOL, the excess funds aren't handled or capped, which may violate the campaign's intent.
Add a check to prevent contributions if they would exceed the goal. For example:
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.