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

Borrower can DoS lender's auction.

Summary

A borrower can DoS their lender's auction.

Vulnerability Details

A lender could be auctioning a loan. Upon someone attempting to buy the loan, the borrower can just call refinance with the same borrow parameters to simply refresh the loan's auctionStartTimestamp.

loans[loanId].startTimestamp = block.timestamp;
// update loan auction start timestamp
loans[loanId].auctionStartTimestamp = type(uint256).max;

Now that the value of auctionStartTimestamp is refreshed, the call to buyLoan will revert due to this line of code:

if (loan.auctionStartTimestamp == type(uint256).max)
revert AuctionNotStarted();

Impact

Borrower can DoS their lender's auction.

Tools Used

Manual review

Recommendations

If a refinance happens to the same pool, do not refresh the value of auctionStartTimestamp

Support

FAQs

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

Give us feedback!