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
sherlock-admin2
changed the title
Innocent Lilac Cyborg - rollLoan can be frontrunned by lender to set arbitrary terms
evilakela - rollLoan can be frontrunned by lender to set 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
rollLoan can be frontrunned by lender to set arbitrary terms
Summary
Lender can frontrun rollLoan called by borrower with provideNewTermsForRoll and change loan terms.
Vulnerability Detail
Basicly same scenario as in my other finding: "Lender can roll loan with arbitrary terms", but not because rollLoan is permissionless.
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
Tool used
Manual Review
Recommendation
Allow borrower to directly provide new loan terms: rollLoan(interest, LTC, duration) and then check if it matches loan.request set by lender.
Duplicate of #243
The text was updated successfully, but these errors were encountered: