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.
sherlock-admin opened this issue
Aug 28, 2023
· 0 comments
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
A malicious lender is able to front-run rollLoan and increases debt amount.
Vulnerability Detail
Lender provides new terms for rolling over the loan.
Borrower accepts and calls rollLoan.
Lender front-runs the borrower transaction and calls provideNewTermsForRoll with new terms (for example he sets a higher number for interest which leads to higher debt amount for borrower).
Impact
Borrower may pay more collateral and repay as much as lender ask.
sherlock-admin2
changed the title
Urban Admiral Haddock - rollLoan is vulnerable to front-running
ubl4nk - rollLoan is vulnerable to front-running
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
ubl4nk
high
rollLoan
is vulnerable to front-runningSummary
A malicious lender is able to front-run
rollLoan
and increases debt amount.Vulnerability Detail
rollLoan
.provideNewTermsForRoll
with new terms (for example he sets a higher number for interest which leads to higher debt amount for borrower).Impact
Borrower may pay more collateral and repay as much as lender ask.
Code Snippet
https://github.com/sherlock-audit/2023-08-cooler/blob/6d34cd12a2a15d2c92307d44782d6eae1474ab25/Cooler/src/Cooler.sol#L282-L300
https://github.com/sherlock-audit/2023-08-cooler/blob/6d34cd12a2a15d2c92307d44782d6eae1474ab25/Cooler/src/Cooler.sol#L192-L217
Tool used
Manual Review
Recommendation
Duplicate of #243
The text was updated successfully, but these errors were encountered: