Borrower's collateral can be immediately seized due to possibility of changing length of liquidation auction by front-run transaction.
The setPool function allows lenders to set up a pool, providing all necessary parameters. This function can also be called on an existing pool, allowing changes to some of the current pool parameters, including the length of liquidation auctions. The malicious lender can front-run a user's borrow request and change the auctionLength value to 1 second. Then, they can start a refinance auction and seize the user's collateral in the subsequent block before the user has a chance to react.
Borrower's collateral may be seized right after receiving a loan.
Manual review.
Disallow lenders from changing the auctionLength parameter in the setPool function. Implement a separate function that can change the auctionLength parameter but with a time delay, which adds an extra layer of security and mitigates the potential for front-running.
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.