PrismaConnector are not able to claim surplus collateral in recovery mode
The PrismaConnector contract lacks a function to call Prisma's claimCollateral, so surplus collateral owed to a borrower after liquidation in recovery mode cannot be claimed and remains stuck in the Prisma contract.
Submitted by grearlake
From prisma docs:
While in Recovery Mode, if your vault’s Individual Collateral Ratio (ICR) falls below the GTCR, your vault can be liquidated (even if your vault’s collateral ratio is above 110%). To prevent this from happening, in both Normal and Recovery Mode, a user should maintain their collateral ratio over 150%.
During Recovery Mode, the liquidation loss is capped at 110% of a vault’s collateral. Any residual amount, i.e. the collateral above 110% (and below the Global Total Collateral Ratio or GTCR), can be recouped by the borrower who faced liquidation by claiming the surplus collateral.
This implies that a borrower will encounter the same liquidation “penalty” (20%) in Recovery Mode as they would in Normal Mode if their vault undergoes liquidation.
Function claimCollateral() is used to claim surplusBalances link:
function claimCollateral(address _receiver) external {
uint256 claimableColl = surplusBalances[msg.sender];
require(claimableColl > 0, "No collateral available to claim");
surplusBalances[msg.sender] = 0;
collateralToken.safeTransfer(_receiver, claimableColl);
}
But in PrismaConnector contract, it does not have function to call claimCollateral() function, lead to surplusBalances is stucked forever.
Impact
surplusBalances are not able to be claimed, funds is stuck.
Recommended Mitigation Steps
Create function to call claimCollateral() function in prisma.
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
The PrismaConnector contract does not expose a wrapper for Prisma's claimCollateral function, so surplusBalances cannot be withdrawn through it.
Impact
Surplus collateral owed to a borrower after liquidation in recovery mode is stuck and cannot be claimed through the connector.
What the attacker needed
Borrower liquidated in recovery mode; surplus collateral owed
The fix
A function should be added to PrismaConnector that calls Prisma's claimCollateral for the relevant account.
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.
When a borrower's vault is liquidated, they may be owed some leftover collateral back. Prisma lets them collect it by calling a claim function. The Noya connector that talks to Prisma never offers a way to make that call, so the leftover collateral stays locked.
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.