The refund()
function lacks proper balance validation, potentially allowing users to withdraw more tokens than they deposited.
The _refundERC20()
function transfers tokens without validating against actual deposits:
High: Potential theft of tokens through balance manipulation
Inconsistent state between balances and actual deposits
Could drain other users' deposits
Foundry for testing
Manual code review
Test demonstrating missing validation:
Add balance validation in 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.