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.
BugHunter101 - The lender can call the rollLoan() to increase the amount of repayments required, resulting in the inability of the borrower to repay the debt
#57
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 call the rollLoan() to increase the amount of repayments required, resulting in the inability of the borrower to repay the debt
Summary
The lender can call the rollLoan() to increase the amount of repayments required, resulting in the inability of the borrower to repay the debt
Imagine the following scenario:
The lender has a premonition that the price of the collateral may rise, and the price of the debt token may fall, so before the price of the collateral rises, the lender increases the repayment amount by calling function rollLoan(),, causing the borrower to be unable to repay the loan until the loan period expires , the lender takes away the collateral
sherlock-admin
changed the title
Innocent Tangerine Viper - The lender can call the rollLoan() to increase the amount of repayments required, resulting in the inability of the borrower to repay the debt
BugHunter101 - The lender can call the rollLoan() to increase the amount of repayments required, resulting in the inability of the borrower to repay the debt
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
BugHunter101
medium
The lender can call the
rollLoan()
to increase the amount of repayments required, resulting in the inability of the borrower to repay the debtSummary
The lender can call the
rollLoan()
to increase the amount of repayments required, resulting in the inability of the borrower to repay the debtImagine the following scenario:
The lender has a premonition that the price of the collateral may rise, and the price of the debt token may fall, so before the price of the collateral rises, the lender increases the repayment amount by calling function
rollLoan()
,, causing the borrower to be unable to repay the loan until the loan period expires , the lender takes away the collateralVulnerability Detail
https://github.com/sherlock-audit/2023-08-cooler/blob/main/Cooler/src/Cooler.sol#L151
Impact
The lender can call the
rollLoan()
to increase the amount of repayments required, resulting in the inability of the borrower to repay the debtCode Snippet
https://github.com/sherlock-audit/2023-08-cooler/blob/main/Cooler/src/Cooler.sol#L151
Tool used
Manual Review
Recommendation
Set
rollLoan()
can be call only by borrower.Duplicate of #26
The text was updated successfully, but these errors were encountered: