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.
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
Lender can provideNewTermsForRoll and then rollLoan with these terms because it permissionless.
Vulnerability Detail
Basicly it allow lender to arbitrary set interest, LTC and duration - increase debt as he wants. This may require to pledge additional collateral (or may not if decrease LTC), but if debt increase is huge, borrower won't repay and anyway lose collateral.
Attack path:
lender clears loan
calls provideNewTermsForRoll with huge interest rate to drascticly increase debt, small duration and smaller ltc to not provide additional collateral
calls rollLoan
now borrowers forced to lose collateral or pay huge debt
sherlock-admin
changed the title
Innocent Lilac Cyborg - Lender can roll loan with arbitrary terms
evilakela - Lender can roll loan with arbitrary 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
evilakela
high
Lender can roll loan with arbitrary terms
Summary
Lender can provideNewTermsForRoll and then rollLoan with these terms because it permissionless.
Vulnerability Detail
Basicly it allow lender to arbitrary set interest, LTC and duration - increase debt as he wants. This may require to pledge additional collateral (or may not if decrease LTC), but if debt increase is huge, borrower won't repay and anyway lose collateral.
Attack path:
Impact
Lender arbitrary increase loan debt. Borrower lose collateral if don't repay.
Code Snippet
https://github.com/sherlock-audit/2023-08-cooler/blob/main/Cooler/src/Cooler.sol#L192-L217
https://github.com/sherlock-audit/2023-08-cooler/blob/main/Cooler/src/Cooler.sol#L282-L300
Tool used
Manual Review
Recommendation
Make rollLoan callable only by borrower (and maybe trusted party like Clearinghouse)
Duplicate of #26
The text was updated successfully, but these errors were encountered: