20,000 USDC
View results
Submission Details
Severity: medium

Auction Length is not updated with `giveLoan()`

Vulnerability Details

When giveLoan() is called, the AuctionLength is not updated to match the AuctionLength of the new pool. As a result, loans can be given to a pool with specifications that the pool creator specified as unacceptable (a AuctionLength that was too long)

Impact

The AuctionLength parameter for pools can be bypassed, which allows a loan to be transferred which is has longer auctionLength than the lender allowed, giving worse conditions for the lender.

Tools Used

Manual Review

Recommendations

Change auction Length to match the auction length of the target pool when giveLoan() is called.

Support

FAQs

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