Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issues 26, 198 #46

Closed
wants to merge 1 commit into from
Closed

Fix Issues 26, 198 #46

wants to merge 1 commit into from

Conversation

ohmzeus
Copy link
Owner

@ohmzeus ohmzeus commented Sep 5, 2023

Summary: An attacker can manipulate the interest_, loanToCollateral_, duration_ parameters, bypassing Clearinghouse.rollLoan(); Lender is able to steal borrowers collateral by calling rollLoan with unfavourable terms on behalf of the borrower.
Issue Links: sherlock-audit/2023-08-cooler-judging#198 ; sherlock-audit/2023-08-cooler-judging#26
Fix Description: Only allow lender to enable rollover at the same terms as origination, instead of with newly proposed terms.

Summary: An attacker can manipulate the interest_, loanToCollateral_, duration_ parameters, bypassing Clearinghouse.rollLoan(); Lender is able to steal borrowers collateral by calling rollLoan with unfavourable terms on behalf of the borrower.
Issue Links: sherlock-audit/2023-08-cooler-judging#198 ; sherlock-audit/2023-08-cooler-judging#26
Fix Description: Only allow lender to enable rollover at the same terms as origination, instead of with newly proposed terms.
@ohmzeus
Copy link
Owner Author

ohmzeus commented Sep 5, 2023

Note for collaborators: provideNewTermsForRoll() parameters were not changed although all are now unused. This was done to prevent all the tests from breaking (though that seems to have been unsuccessful). We need to change interfaces and interactions where affected in src/ and tests.

@0xrusowsky
Copy link
Collaborator

@0xrusowsky 0xrusowsky closed this Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants