buyLoan only check interestRate > currentAuctionRate, not check loanRatio > pool.maxLoanRatio, which will cause the pool to lose money.
And caller can designate any pool, even if they don't own it, which gives caller enormous power to manipulate the pool, causing it to go into debt.
The two problems mentioned above can be clearly seen in the code, no further details
The caller can specify any poolId. If maxLoanRatio is not met, the pool will lose money.
Manual review
require loanRatio <= pool.maxLoanRatio
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.