Malicious lender can increase loan debt by giving loan to himself.
A lender can give his loan to another pool, or give to himself if he wants to. This can be done by leveraging giveLoan method.
loanIds and poolIds are passed to giveLoan method, after doing some checks, loan will be updated as per the new pool info.
It is worth noting that the loans[loanId].debt is updated to totalDebt where totalDebt is totalDebt = loan.debt + lenderInterest + protocolInterest, which means borrower's debt is increased.
A malicious lender can give a loan to his own pool by many times periodically, and borrower's debt will be increased significantly.
This is obviouly wrong because the way of calculating loan interest is simple interest, the accumulated interest of previous periods should not be taken into account when calculating the interest.
More debt means more interest, borrower has to pay more tokens to repay.
Mannual Review
When a loan is given to another pool (or the same pool), the accumulated interest of previous periods should not be added to the loan debt.
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.