The absence of a minimum value set for auctionLength could potentially lead to financial losses for the borrower.
The value of auctionLength represents the duration of an auction. The contract checks whether auctionLength is equal to 0 or greater than MAX_AUCTION_LENGTH, but it doesn't consider a minimum value for auctionLength. This opens up the possibility for malicious actions by the lender, allowing them to exploit the borrower's assets. For instance, if the lender sets auctionLength to an extremely small value like 1 second, the auction will conclude after just 1 second. This leaves no time for other lenders to participate and purchase the loan, enabling the lender to liquidate the borrower's assets directly. If the borrower overlooks this value, it could result in significant asset loss.
This will unconditionally lead to the liquidation of the borrower, causing financial damage to the borrower's funds.
vscode
Consider setting a minimum value for auctionLength.
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.