20,000 USDC
View results
Submission Details
Severity: medium
Valid

Pool owner can front-run loans to snap extra fee

Summary

Pool owner can front-run borrower to snap extra fees

Vulnerability Details

Lender.sol allows pool owners to update [pool loan interest rate](Pool owner can front-run loans to snap extra fee) at will. A malicious pool owner can sandwich-attack a lucrative loan to snap extra fees.

Impact

Borrower is charged more than expected interest rate.

Tools Used

Manual review

Recommendations

Add a uint256 maximumInterestRate input parameter to function borrow and check that the pool interest rate is not more than this value.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.