# Liquidators may repay a position's debt to pools that are within their risk tolerance, breaking the concept of isolated risk in base pools

Sentiment V2 position health aggregates LTVs across all debt pools, so one pool lowering its LTV makes a position liquidatable in other pools, breaking isolated risk.

- Payout: Audit contest
- Severity: medium
- Program: Sentiment
- Found by: HHK
- Disclosed: 2024-08-07
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2024-08-sentiment-v2-judging/issues/382
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-08-sentiment-v2%3AM-16
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic vuln:liquidation

**Target:** RiskModule position health / liquidation flow
**Root cause:** isPositionHealthy sums minReqAssetValue across all debt pools using each pool's own LTV, with no per-pool collateral allocation; liquidators can then repay debt from any pool once the aggregate position is unhealthy.
**Steps:**
1. Set fixedRatePool and linearRatePool LTV for asset2 to 0.7e18 via requestLtvUpdate + acceptLtvUpdate after 24h timelock.
2. user deposits 10e18 asset1 into each pool; user2 deposits 3e18 asset2 collateral and borrows 1e18 from each pool; position healthy.
3. fixedRatePool lowers asset2 LTV to 0.6e18 (request, warp 24h, accept).
4. isPositionHealthy now false: minReq = 1e18/0.6 + 1e18/0.7 = 3.094e18 > 3e18 collateral.
5. Liquidator calls `positionManager.liquidate(position, debts=[{poolId: linearRatePool, amt: max}], assets=[{asset2, 1.25e18}])`, repaying linearRatePool debt despite it being within its own risk tolerance.
**How found:** Code reading of RiskModule._getMinReqAssetValue and isPositionHealthy: noticed health is computed globally across debt pools with no per-pool collateral allocation, contradicting documented isolated-risk guarantee; confirmed with a Foundry PoC.
**Exploitation:** Adversarial pool owner lowers LTV on a shared collateral asset, making positions with debt in other pools unhealthy, then liquidates them (possibly self-liquidating) to seize collateral and distort utilization/rates in victim pools.
**Escalation:** Adversarial pool can manipulate utilization/TVL of competitor pools or capture liquidation incentives; timelock does not fully mitigate since no LTV change is needed for natural exposure and monitoring numPools^4 combinations is impractical.
**Insight:** In multi-pool lending with shared positions, check whether health/liquidation math aggregates risk parameters across pools rather than allocating collateral per debt pool; a single pool's LTV change can then trigger liquidations in unrelated pools.

