-
Notifications
You must be signed in to change notification settings - Fork 2
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
hash - Setting minDebt
and minBorrow
to low values can cause protocol to accrue bad debt
#572
Comments
Admin won't set minDebt and/or minBorrow to zero |
minDebt
and minBorrow
to low values can cause protocol to accrue bad debtminDebt
and minBorrow
to low values can cause protocol to accrue bad debt
I cannot escalate the issue due to insufficient escalation threshold Hi @z3s, Your statement is not true:
Please refer to the following excerpts from the contest public channel.
Furthermore, the "Sponsor Confirmed" tag also confirms that the sponsor considers this issue valid. Thanks for your time. |
Escalate, |
You've created a valid escalation! To remove the escalation from consideration: Delete your comment. You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final. |
I agree with the escalation. In the Readme, we have values that the TRUSTED admin will set. That is exactly the purpose of this question in the Readme: There we can see that the admin will use low values for
If low values are set for Planning to accept the escalation and make this issue a Medium severity. |
Result: |
Escalations have been resolved successfully! Escalation status:
|
Note to @cvetanovv: |
hash
Medium
Setting
minDebt
andminBorrow
to low values can cause protocol to accrue bad debtSummary
Setting
minDebt
andminBorrow
to low values can cause protocol to accrue bad debt as liquidators won't find enough incentive in clearing the low debt and also depending on the price, users may be able to borrow dust without providing collateralVulnerability Detail
minDebt
andminBorrow
are supposed to be settable from 0link
Setting these to low values will allow positions to be created with low debts and liquidations won't happen on small positions due to it not generating enough profit to cover the costs of the liquidator. This will cause the protocol to accure bad debt.
Also if both are set to dust, the roundings will become significant and allows one to borrow dust amounts without proper collateral. Eg, if both are set to 0 and the price of assets is less than that of eth, the borrowing 1 wei of the assets will require no collateral as the value in eth will be rounded to 0
Impact
Protocol can accrue bad debt leading to depositors loosing their assets in case the values are set low
Code Snippet
https://github.com/sherlock-audit/2024-08-sentiment-v2/tree/main?tab=readme-ov-file#q-are-there-any-limitations-on-values-set-by-admins-or-other-roles-in-the-codebase-including-restrictions-on-array-lengths
Tool used
Manual Review
Recommendation
Ensure the
minDebt
,minBorrow
values are not decreased below a certain thresholdThe text was updated successfully, but these errors were encountered: