The SettlementBranch
transfers funds before updating balances, enabling reentrancy attacks.
Affected Code:
Exploit Scenario:
Attacker creates contract with reentrant transfer
hook.
Calls settleProfit
, triggering reentrancy during transfer.
Drains protocol funds via recursive calls.
Fund Drainage: Critical but mitigated by gas limits.
Medium Severity (CVSS 6.9).
Manual Review
Foundry
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.