RustFund

First Flight #36
Beginner FriendlyRust
100 EXP
View results
Submission Details
Severity: high
Valid

User contribution always remains at 0

Summary

Vulnerability Details

In this function https://github.com/CodeHawks-Contests/2025-03-rustfund/blob/main/programs/rustfund/src/lib.rs#L37, the contributions of a user is always set to 0.

Impact

User won't be able to withdraw their funds.

Tools Used

Manual review

Recommendations

Update the contribution.amount accordingly (add the contribution if there is already one.

Updates

Appeal created

bube Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Contribution amount is not updated

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.