20,000 USDC
View results
Submission Details
Severity: gas
Valid

Reentrancy attack in `buyLoan` by a feeReceiver

Summary

The FeeReceiver can reenter buyLoan and to transfer loan.loanToken - protocolInterest more than 1 time

Vulnerability Details

Buying a loan is transfering the protocolInterest to the feeReceiver and then the laon.auctionStartTimestamp is updated

Impact

Loss of funds

Tools Used

Manual Review

Recommendations

Update the loan before transfering any tokens

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.