Lender can take more collateral tokens than deposited by borrower.
In the seizeLoan function a malicious lender can cause reentrancy attack in line 565 in which collateral is transferred to the lender,so if the lender is a malicious contract then it can reenter and call the seize function again as the loan is deleted at the end this gives rise to this vulnerability.
Ultimately extra collateral tokens taken by the lender are from the lender.sol contract causing loss of funds.
Manual Review
First delete the loan from loans array and then transfer the collateral tokens.
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.