Skip to content
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

Closed
sherlock-admin2 opened this issue Aug 28, 2023 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin2
Copy link
Contributor

sherlock-admin2 commented Aug 28, 2023

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 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

Vulnerability 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 debt

Code 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

@github-actions github-actions bot closed this as completed Sep 1, 2023
@github-actions github-actions bot added Medium A valid Medium severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Sep 1, 2023
@sherlock-admin 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
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

2 participants