The withdraw
function does not validate whether the caller is the creator of the fund. This could allow a malicious user to withdraw all funds from any fund.
The withdraw
function does not check if the caller is the creator of the fund:
A malicious user could call withdraw
and drain the funds from any fund, even if they are not the creator.
manual review
Add a check to ensure only the creator can withdraw funds:
There are enough security checks in `withdraw` function. Anchor enforces that creator must sign the transaction. And the `has_one = creator` ensures that the fund’s creator matches the provided creator account.
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.