This repository has been archived by the owner on May 26, 2023. It is now read-only.
Jeiwan - Liquidations are enabled when repayments are disabled, causing borrowers to lose funds without a chance to repay #290
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
Jeiwan
high
Liquidations are enabled when repayments are disabled, causing borrowers to lose funds without a chance to repay
Summary
Debt repaying can be temporary disabled by the admin of
BlueBerryBank
, however liquidations are not disabled during this period. As a result, users' positions can accumulate more borrow interest, go above the liquidation threshold, and be liquidated, while users aren't able to repay the debts.Vulnerability Detail
The owner of BlueBerryBank can disable different functions of the contract, including repayments. However, while repayments are disabled liquidations are still allowed. As a result, when repayments are disabled, liquidator can liquidate any position, and borrowers won't be able to protect against that by repaying their debts. Thus, borrowers will be forced to lose their collateral.
Impact
Positions will be forced to liquidations while their owners won't be able to repay debts to avoid liquidations.
Code Snippet
BlueBerryBank.sol#L740
Tool used
Manual Review
Recommendation
Consider disallowing liquidations when repayments are disabled. Alternatively, consider never disallowing repayments so that users could maintain their positions in a healthy risk range anytime.
The text was updated successfully, but these errors were encountered: