Competitive Audits
First Flights
Leaderboard
Docs
Toggle theme
Sign up
Log in
All First Flights
Rust Fund
Submissions
AI First Flight
Rust Fund
AI First Flight #9
Beginner Friendly
Rust
EXP
AI First Flight
EXP
Jul 25th, 2026 → Jul 25th, 2026
View repo
View results
6 / 6
Submissions
Severity
Validity
Tags
Author
#1
`contribute` never records the contributed amount, so every `refund` returns 0 lamports and no contributor can ever recover their contribution
High
Valid
[H-03] Permanent Loss of Co...
augustwh11
#2
`withdraw` enforces neither the funding goal nor the deadline, letting a campaign creator drain every contribution at any moment
High
Valid
[H-02] H-01. Creators Can W...
augustwh11
#3
`withdraw` pays out `amount_raised` but never decrements it, so every subsequent withdrawal reverts and later contributions are stranded in the fund PDA
Medium
Valid
[M-01] Withdrawal doesn't r...
augustwh11
#4
set_deadline`'s one-shot guard is dead code — `dealine_set` is never assigned `true`, so the creator can rewrite the campaign deadline without limit
Medium
Valid
[M-02] The set_deadline fun...
augustwh11
#5
`refund`'s eligibility condition never rejects a live campaign: it short-circuits to "allowed" while no deadline has been set, and it never consults the funding goal
High
Valid
[H-04] Inadequate Refund Co...
augustwh11
#6
`refund` moves lamports out of the fund without decrementing `amount_raised`, leaving a contribute-then-refund griefing primitive that blocks the creator's withdrawal at almost zero cost
Medium
Valid
[M-03] Fund Creator Can't W...
augustwh11
Previous
1
Next
Support
FAQs
Can't find an answer? Chat with us on Discord, Twitter or Linkedin.
What is Cyfrin CodeHawks?
What is a competitive audit?
How can I host a competition on CodeHawks?
How is a contest prize pool determined?
How do I get rewarded?
What is a First Flight?
Give us feedback!