The function does not verify whether the contributor requesting a refund is the actual contributor recorded in the Contribution
account. This opens up the possibility of unauthorized users claiming refunds.
The function allows any user to call refund
, without verifying if the caller matches the stored contributor.
A malicious user could use another contributor’s Contribution
account to claim a refund on their behalf.
Unauthorized withdrawals can lead to fund leakage and loss of funds for legitimate contributors.
Attackers could systematically drain funds from the contract by exploiting this flaw.
Add a check to ensure that only the original contributor can request a refund:
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.