Loan can be bought by any user even if the user doesn't have any pool.
When a loan goes for auction, any user to buy the loan through buyLoan method.
However, this method doesn't check if the buyer is lender of the pool, it simply reduced the pool balance and set the loan.lender to the caller.
It basically means any user can buy a loan even if the user doesn't have a pool.
User can get a loan without paying off debt and the real pool lender will lose funds.
Manual Review
If the caller is not the pool lender, transaction should revert.
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.