in buyLoan function there is no check to ensure that auctionLength of new pool is longer than previous pool.
If lender of a pool start auction and transfers the loan to a new pool with lower auctionLength, the borrower will be forced to repay the loan in a shorter time.
consider a scenario that lender creates two pools with different auction lengths, once with 5 days and another one with 10 days.
After a borrower takes a loan from second pool, lender can back-run the borrower, start the auction, call buyLoan function and transfer the loan to another pool and start auction for loan in the new pool so borrower is forced to rapay in a shorter time.
Auction length of loan can be reduced by lender
Manual Review
Add a check to ensure that auction length of the new pool is not lower than the previous pool.
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.