No minLoanSize means liquidators will have no incentive to liquidate small positions
The protocol allows loans with no minimum size, so liquidators have no economic incentive to liquidate small underwater positions. An attacker could borrow many small loans that become underwater but remain unliquidated, pushing the protocol into bad debt.
falconhoof Follow with grearlake
Originally disclosed on Code4rena
Submitted by falconhoof, also found by grearlake
No minLoanSize can destabilise the protocol.
Vulnerability Details
According to protocol team, they plan to roll out the protocol with minLoanSize = 0 and adjust that number if needs be. This can be a big issue because there will be no incentive for liquidators to liquidate small underwater positions given the gas cost. To do so would not make economic sense based on the incentive they would receive.
It also opens up a cheap attack path for would be attackers where they can borrow many small loans, which will go underwater as they accrue interest, but will not be liquidated.
Impact
Can push the entire protocol into an underwater state. Underwater debt would first be covered by Protocol reserves and where they aren’t sufficient, lenders will bear the responsibility of the uneconomical clean up of bad debt, so both the protocol and lenders stand to lose out.
Recommended Mitigation Steps
Close the vulnerability by implementing a realistic minLoanSize, which will incentivise liquidators to clean up bad debt.
kalinbas (Revert) acknowledged and commented:
Will do the deployment with a reasonable
minLoanSize.
Normally, I would mark such issues as Low. But given that this issue provides a substantial reminder to the sponsor, I am retaining it as Medium.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the absence of a minimum loan size, which makes liquidating small positions unprofitable after gas costs.
Impact
Small underwater positions may never be liquidated, and the resulting bad debt could first consume protocol reserves and then fall on lenders, potentially destabilising the whole protocol.
What the attacker needed
No minimum loan size; gas costs exceed liquidation reward
The fix
The protocol should set a realistic minimum loan size so that liquidators are incentivised to clean up bad debt; the team said they will deploy with a reasonable value.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In a lending protocol, if a borrower's debt becomes worth more than their collateral, a liquidator can repay the debt and take the collateral at a discount. This only works if the discount is bigger than the gas fee. With very small loans, the fee is larger than the reward, so nobody cleans up the bad debt.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.