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

You can buy loan with less loan to collateral ratio than what is specified for the pool.

Summary

When calling buyLoan() function of Lender.sol to buy a loan after an auction is started, there is no check for maxLoanRatio.

Vulnerability Details

User may buy loan whose loan to collateral ratio is less than what they specified in their pools maxLoanRatio.

Impact

Pool lender may not get specified collateral for the loan, which also creates an issue in giving the loans to another pool.

Tools Used

Manual Review

Recommendations

Calculate the current loan ratio of the loan being auctioned and check it with the max loan ratio of the pool before completing the buyLoan function transaction.

Support

FAQs

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