A malicious lender can create a pool with an interest that can entice any borrower, then can frontrunn and change the interest to the maximum allowed using the updateInterestRate
function
1- The lender creates a pool with a low interest
2- A borrower sees this and makes a loan
3- A lender sees a borrower's transaction in mempool and frontrunn to put its updateInterestRate
function first
Mark this problem as high because the borrower after this can: either pay the high interest, or be liquidated and lose their collateral. In either of the two actions the borrower would be suffering a loss of funds
Manual Review
Change the logia of how this works. Consider adding a parameter to the borrow
function indicating the maximum interest a borrower is willing to accept.
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.