Borrowers can be frontrun with an interest rate change, resulting in them paying the maximum interest rate.
When a user (borrower) submits a transaction to borrow()
, the pool owner (lender) can frontrun the borrower transaction with a call to updateInterestRate()
and set the interest rate to MAX_INTEREST_RATE
(1000%). The borrower's transaction subsequently gets executed, and since there is no way for the borrower to limit the interest rate they are willing to pay, he will get assigned the maximum interest rate.
Borrowers can be tricked into paying the maximum interest rate by frontrunning their calls to borrow()
, resulting in a loss of funds.
None
Add a uint256 maxInterestRate
parameter to the Borrow
struct that should be verified withing borrow()
:
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.