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

Borrower may borrow a loan with unexpected auction length

Summary

Borrower may borrow a loan with unexpected auction length.

Vulnerability Details

Borrower calls borrow(Borrow[] calldata borrows) to borrow a loan, the calldata borrows doesn't contain auctionLength.

When borrower calls to borrow, the pool lender may also call setPool(Pool calldata p) to update the auction length. Both the transactions will be in mempool, if the setPoolgets executed beforeborrowtransaction, borrower may get a loan with unexpectedauctionLength`.

Impact

Borrower gets a loan with unexpected auction length.

Tools Used

Manual Review

Recommendations

Add the auctionLength to calldata borrows, and check if pool auctionLength is expected.

Support

FAQs

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

Give us feedback!