The claimFees function in CreditDelegationBranch.sol (line 284) lacks reentrancy protection. This function transfers WETH to the caller without safeguarding against reentrant calls, potentially exposing the protocol to reentrancy attacks. A malicious actor could repeatedly call this function to drain the protocol's WETH reserves before their state is updated.
As we can see it lacks a non-reentrant modifier so when the function calls back the remaining amount to claim can be stolen
Users’ claimable WETH could be stolen, resulting in loss of funds and diminished trust in the protocol.
Add a non-reentrant modifier
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.