A vulnerability was identified in the contribute
function of the RustFund crowdfunding smart contract. The current implementation prevents contributions exactly at the fund's deadline, potentially blocking legitimate last-minute contributions. This issue impacts user experience and may result in missed funding opportunities.
The vulnerability stems from using a strict <
(less than) comparison for deadline checking. This means any contribution exactly matching the fund's deadline timestamp will be automatically rejected. The current implementation does not allow contributions at the precise moment the deadline is reached.
Incorrect timestamp comparison logic that uses <
instead of <=
, creating an unintended restriction on contributions.
User Experience Degradation: Users cannot contribute during the final moment of a funding campaign.
Potential Fund Loss: Last-minute contributions are systematically blocked.
Reduced Platform Reliability: Contributors may perceive the platform as unreliable or poorly designed.
The financial impact could be significant, especially for campaigns relying on last-minute contributions to reach their funding goals.
Code Fix: Modify the deadline comparison operator from <
to <=
Manual Code Review
Rust Static Analysis
Anchor Framework Analysis
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.