You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.
deadrxsezzz - If a lender has made a request and gives the loan to a new lender, the borrower can still accept the original lender's proposed terms
#253
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
The lender can also transfer ownership of the loan to a new lender. The problem is that upon doing so, the requests for the loan are not cleared. This means that after transferring the ownership, the borrower can still accept the terms from the original lender, even if the new one finds them unfavorable.
Impact
New lender can be forced into unfavorable loan terms.
sherlock-admin
changed the title
Generous Juniper Mink - If a lender has made a request and gives the loan to a new lender, the borrower can still accept the original lender's proposed terms
deadrxsezzz - If a lender has made a request and gives the loan to a new lender, the borrower can still accept the original lender's proposed terms
Sep 12, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
deadrxsezzz
high
If a lender has made a request and gives the loan to a new lender, the borrower can still accept the original lender's proposed terms
Summary
If a lender has made a request and gives the loan to a new lender, the borrower can still accept the original lender's proposed terms
Vulnerability Detail
After a loan is active, the lender can propose new terms for it via
provideNewTermsForRoll
.The lender can also transfer ownership of the loan to a new lender. The problem is that upon doing so, the requests for the loan are not cleared. This means that after transferring the ownership, the borrower can still accept the terms from the original lender, even if the new one finds them unfavorable.
Impact
New lender can be forced into unfavorable loan terms.
Code Snippet
https://github.com/sherlock-audit/2023-08-cooler/blob/main/Cooler/src/Cooler.sol#L282C2-L300C6
Tool used
Manual Review
Recommendation
Upon transferring ownership of a loan, clear all requests for it.
Duplicate of #26
The text was updated successfully, but these errors were encountered: