20,000 USDC
View results
Submission Details
Severity: high

Borrower can initiate refinance for loans that are under auction

Summary

Borrower can initiate refinance for loans held while lender initiates an auction and it active. These are two separate processes initiated by two parties leading to a weird state based on the order of execution.

Vulnerability Details

Borrower can initiate refinance to move the loan to a different pool by specifying the pool id.
Like wise, the lender can also initiate Auction process creating opportunity for other lenders to acquire the loan.
Since both these processes are imitated by two different parties, there is a potential for conflict based on order of execution resulting in state being updated to weird state.

Impact

State can potentially be updated to a weird state.

Tools Used

Manual review

Recommendations

If the auction has started by the lender, then refinance invoked by the borrower should revert.
Implement a check in the refinance function to ensure auction is not initiated. If not initiated, the borrower can process the refinance.

Support

FAQs

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