Skip to content
Business logic Audit finding Advanced

Refundable open-VPI is booked into Junior NAV, so an LP who also trades can round-trip around its own redemption and take other Junior LPs’ principal

A trader's VPI charge on a skew-increasing open is booked as distributable LP value immediately, even though the lifetime clamp refunds it when the position closes at the same skew. An LP who also trades can open a large position just before its own Junior redemption is priced, redeem at the inflated share price, then close and recover the charge, leaving the remaining Junior LPs to absorb the loss.

Sharkeeeeeee Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

#97636 [SC-Critical] Refundable open-VPI is booked into Junior NAV, so an LP who also trades can round-trip around its own redemption and take other Junior LPs’ principal

Submitted on Nov 2nd 2026 at 15:04:28 UTC by @Sharkeeeeeee for Audit Competition | Plether

Description

  • Assets: HousePool.sol, TrancheVault.sol (Junior instance), CfdEngineSettlementSidecar.sol and libraries/HousePoolAccountingLib.sol in packages/perps/src, audit-comp-plether commit a82d4fef (Arbitrum One).
  • Selected impact: Critical, "Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield". The funds are Junior LP principal.
  • Parameters: the release parameters in packages/perps/DEPLOYMENT.md:123-155. The PoC uses all of them unchanged.

Test numbers refer to the Proof of Concept section.

TL;DR

  • Bug: a trader's VPI charge on a skew-increasing open is counted as distributable LP value as soon as it is paid, although the lifetime clamp returns it to the same position when it closes at the same skew.
  • Exploit: an LP who also trades opens a large position just before its own Junior redemption is priced, redeems at the raised price, then closes and gets the charge back. The Junior LPs who stay repay it. No price move, oracle manipulation or privileged role is needed, and the cycle repeats every 3 hours.
  • Representative result (test 4): with a temporary deposit of 2 × the incumbent Junior and equal Senior and Junior, the incumbent's 10.00 M Junior ends at 8.53 M after 21 days, against 9.97 M in an honest run. The attacker makes 700 k, or about 608 k after an assumed 8 % cost of capital.
  • Why it is not a design choice: the charge is a refundable deposit, not revenue. LPs who stay end below where they started, which the documented carry-timing policy never causes, and honest LPs are mispriced the same way (tests 8, 9).
  • Bound: the drain stops at the Junior covenant floor, at most 1 − S/(4J) of incumbent Junior.

1. Summary

When a trader opens a skew-increasing position, the VPI charge it pays goes straight into HousePool cash and is booked as LP revenue. Under the lifetime clamp, the same position gets that charge back as a rebate when it closes at the same skew. Tranche share prices are computed from pool cash, so the charge raises the Junior share price while the position is open and lowers it again when the position closes.

The attacker deposits into Junior, opens a large position just before its own redemption epoch is priced, redeems at the raised price, then closes the position and gets the charge back. Pool depth sets both the skew cap and the size of the charge, and it counts all Senior capital plus the attacker's temporary deposit. The charge therefore grows with capital that does not share the loss, while the loss falls only on the other Junior LPs.

Results use the release parameters, the competition compiler settings, a basket price fixed at 1.05 and an oracle confidence of 3 bp. One address holds the entire incumbent Junior tranche (10 M USDG); W is the attacker's temporary Junior deposit. "Loss" is measured against an honest run from the same snapshot that makes the same deposits and redemptions without the trade. "Profit" is what the attacker ends with compared with not taking part at all, after every fee, the confidence shift and its share of the Senior coupon; the figure in parentheses also subtracts an assumed 8 % a year cost of capital on W.

Scenario Test Duration Incumbent Junior value: start → honest → attack Loss Profit (after cost of capital) Attacker's share of the loss, after cost of capital
W = 2 ×, Senior = Junior 4 120 cycles, 21 days 10.00 M → 9.97 M → 8.53 M 1,431,164 (14.31 %) 699,788 (607,733) 42 %
W = 1 ×, Senior = 3 × Junior 2 120 cycles, 21 days 10.00 M → 9.89 M → 8.84 M 1,050,895 (10.51 %) 115,037 (69,010) 7 %
W = 5 × (a 50 M deposit), Senior = 3 × Junior, until the covenant floor 3 65 cycles, 10 days 10.00 M → 9.96 M → 7.48 M 2,477,869 (24.78 %) 1,571,077 (1,461,488) 59 %
W = 0.5 ×, Senior = 3 × Junior, another trader already holds skew of 30 % of depth 6 30 cycles, about 3.75 days 10.02 M → 10.00 M → 9.94 M 65,760 (0.66 %) 17,121 (13,011) 20 %

Measured against the honest run, each loss equals the attacker's gain plus its opening execution fees, which reach the protocol treasury (Appendix A). The W = 5 × row needs a 50 M deposit, more than the 40 M pool and slightly more than the 48.5 M USDG now on Arbitrum (§9).

One cycle, worked through (test 1, W = 1 ×, Senior = 3 × Junior, 3 bp confidence). Figures are rounded; the last two rows are measured averages over the test's 30 cycles.

Step Amount
Depth after the attacker's 10 M deposit, D 50.0 M
Attacker's LONG, n = 0.38 · D 19.0 M notional
VPI charge paid into the pool, C = 0.01 · 0.38² / 2 · D 36.1 k
Attacker's share of Junior at the settlement, s 50 %
Extra paid out in the attacker's redemption, s · C +18.05 k
Execution fees, 4 bp each leg (open to treasury, close stays in pool) −7.60 k, −7.60 k
Confidence shift, (2 − s) · 0.75 bp · n −2.14 k
Attacker's share of the Senior coupon for about 2 h −0.27 k
Close: the full 36.1 k charge is refunded from pool cash 0 net for the trader
Attacker per cycle, measured +0.55 k
Incumbent Junior per cycle, measured −8.41 k

The incumbent's 8.41 k is the attacker's 18.05 k capture less what flows back to the pool: the 7.60 k closing fee and most of the confidence shift. The line items give +0.44 k for the attacker against the measured +0.55 k; the gap is rounding and the coupon estimate.

2. Root cause

2.1 The open's VPI charge becomes pool revenue immediately

CfdEngineSettlementSidecar.sol:446-463. On an open, any positive trade cost that is not credited to the protocol fee is recorded as pool revenue with the cash already arrived:

Solidity
if (delta.tradeCostAssets > 0) {
    uint256 poolCashInflowAssets = uint256(delta.tradeCostAssets) - protocolFeeCreditedAssets;
    if (poolCashInflowAssets > 0) {
        IHousePool(host.pool())
            .recordClaimantInflow(
                poolCashInflowAssets,
                IHousePool.ClaimantInflowKind.Revenue,
                IHousePool.ClaimantInflowCashMode.CashArrived
            );
    }

For a skew-increasing open, the VPI charge is part of tradeCostAssets. It is the change in the potential P(S) = vpiFactor · S² / (2 · depth) between the pre-trade and post-trade skew (CfdMath.sol:121-140; WHITEPAPER.md:850-857).

2.2 The charge comes back when skew returns

A close that reduces skew receives a VPI rebate paid out of pool cash (CfdEngineSettlementSidecar.sol:621-624). The rebate is a fresh curve delta at the close's skew and depth, capped by the lifetime clamp at the VPI the position has paid (SECURITY.md:1443: "the lifetime clamp intentionally zeroes otherwise extractable rebate-only round trips"). The rebate goes to whichever trade reduces skew; when skew has not changed in between, that is the position that paid the charge. Three conditions apply:

  • it is paid only from pool cash left free after trader claims, and any unfunded remainder is waived (ACCOUNTING_SPEC.md:1061-1063);
  • it is smaller if other trades have reduced skew in the meantime;
  • it is smaller if depth has risen in the meantime, because the fresh delta is computed at the higher depth and the clamp limits the rebate only from above.

None of them binds in the attack. The position is open for about two minutes, and in the PoC the pool holds tens of millions in free cash against a refund of tens of thousands. Depth at the close is lower because the attacker's deposit has left, which makes the fresh rebate larger than the charge. The whitepaper notes that changing depth breaks the fixed-potential assumption and that "the position lifetime clamp can truncate close rebates" (WHITEPAPER.md:863-865); here that truncation brings the larger rebate back to the amount paid. With zero oracle confidence the attacker's trade legs cost 454,682.52 USDG over 30 cycles against 454,662.10 USDG of execution fees. The 20.42 USDG gap, about 0.7 USDG per cycle, is carry for the minutes the position is open plus rounding, so the VPI nets to zero. Test 7 asserts this.

2.3 Tranche pricing counts that cash as distributable

HousePoolAccountingLib.buildReconcileSnapshot (:60-78) prices the pool as physical assets plus the terminal price delta, minus trader claims:

Solidity
uint256 terminalAssets = engineSnapshot.physicalAssets;
uint256 terminalLiabilities = engineSnapshot.traderClaimBalanceAssets;
int256 terminalDelta = engineSnapshot.terminalLpPriceDeltaAssets;
...
snapshot.distributable = terminalAssets - terminalLiabilities;

physicalAssets is HousePool.totalAssets() (CfdEngineProtocolLens.sol:63-64). settleLpEpoch reconciles with this snapshot (HousePool.sol:835), then prices and funds the Junior redemption phase from it (HousePool.sol:839-889). The terminal NAV book is price-only and has no VPI term. The refundable charge therefore sits inside physicalAssets with nothing offsetting it, and every redemption funded in that settlement is paid at the raised price.

2.4 Depth amplification

Economic depth is pool assets net of trader claims (SECURITY.md:1438). It includes all Senior capital and the attacker's freshly settled Junior deposit. The skew cap (maxSkewRatio = 0.4 × depth) and the largest possible charge (about 0.0008 × depth at the cap) both grow with depth, while the victims' holdings do not. A temporary deposit therefore raises the attacker's share of Junior and the size of the price bump at once, and Senior capital adds to the bump without adding to the Junior that shares it. This sets how much each cycle drains, not the capital at which the attack starts to pay, because the fees and the confidence cost grow with depth at the same rate as the charge (§6). Junior has no deposit cap (TrancheVault.sol:1313-1325). The attacker's capital is locked for about 3 hours per cycle: a 1 h LP epoch (HousePool.sol:178) plus the 1 h deposit cooldown (TrancheVault.sol:38).

3. Why this is a defect and not a design choice

The protocol accounts on a cash basis. Anticipated carry, VPI and fees stay outside the terminal NAV book, terminal K (ACCOUNTING_SPEC.md:1064-1066), and positive VPI "increases physical pool assets" as soon as it is paid (WHITEPAPER.md:411-412). We do not dispute cash-basis accounting as such. The problem is what the lifetime clamp turns an open charge into.

The documented timing risk is a different thing. The docs warn that the five-minute LP cutoff "is not an immutable settlement snapshot" and that after it "trading, closes, liquidations, claims, carry, and pool accounting can change NAV" (SECURITY.md:1044-1048). The whitepaper adds: "Epochs do not remove ordinary timing and liveness risk" (WHITEPAPER.md:742). Those passages describe NAV moving with real economic events: price PnL, liquidations, carry collected. None of them is reversed by construction, and no single party decides both when it starts and when it ends. Here NAV is raised by a deposit that must flow back out, and the party that creates it also decides when it reverses. Redeeming in between is then not exposure to timing risk; it is a payment from the LPs who stay.

An open charge is a refundable deposit, not revenue. At unchanged skew the charge comes back to the same position (§2.2). After a same-price round trip the pool has earned nothing from VPI. Booking the deposit as distributable while it is held lets any LP who redeems in between take part of it, and the LPs who stay repay it when the position closes. They end below where they started, not just with a smaller gain: in test 2 the incumbent's Junior falls from 10.00 M to 8.84 M, while the honest run ends at 9.89 M.

This is not the documented carry policy. The whitepaper accepts that a trader and an incoming LP "can time collection after activation and share carry accrued before entry", and calls this "an intentional collection-time ownership policy" (WHITEPAPER.md:974-977). Carry is income the trader never gets back. Timing its collection changes which LPs share real revenue, and the pool keeps it. Timing VPI works differently: the money leaves again at the close, so the LPs who stay pay for the LP who left. Tests 8 and 9 show this with no attacker at all. An honest LP that exits while a position is open gains, and the LP that stays, or one that enters at that moment, loses.

The protocol is already cautious in the opposite case. When a trader receives a negative-VPI rebate that may be clawed back, it must lock a matching reserve from its own funds, and "the reserve is excluded from the terminal price curve, so LPs cannot withdraw it as marked equity before the matching position obligation settles" (WHITEPAPER.md:887-888). The expected clawback is a receivable, and the protocol does not let LPs count it early. The expected refund of a positive charge is a liability, and nothing stops LPs withdrawing against it.

Other designs. In GMX v2, price impact paid by traders goes into a position impact pool. MarketUtils.getPoolValueInfo subtracts that pool from LP pool value (v2.2, L387-391), positive price impact for trades that reduce imbalance is paid out of it (L907-945), and it is released to LPs over time (L2723-2766). That pool plays the role Plether's pool cash plays for close rebates, but LPs cannot withdraw it at once. The whitepaper cites Synthetix and Perennial as prior art for integrated skew pricing (WHITEPAPER.md:890). We have not analysed how they treat refundable premium in LP value, so we do not claim either way for them.

Known issues and prior reports. None of the LP accounting or VPI entries in Known Limitations (SECURITY.md:1380-1400, :1434-1445) covers LP share pricing during a VPI round trip; the clamp entry covers only the trader's own round trip. The Cecuro items that the program marks as known (MED-7, MED-13, MED-16, MED-22, MED-24, MED-29, MED-30, LOW-57, HIGH-1) are about other mechanisms; none of them involves VPI or LP pricing. None of the five reports in the repository's audits/ folder describes it either. The closest is the scan report's informational item "Temporary pool-liquidity reduction can amplify a skew-reducing close rebate" (audits/scan-plether-fi-plether-core-d4541b49.md:1742), which says a trader who lowers pool depth just before closing gets a larger rebate, up to the VPI it paid. This finding is different:

  • The trader gets back what it paid, no more. With zero oracle confidence the attacker's trade legs cost the two execution fees plus a few USDG of carry (§2.2), so the extra rebate that item describes is zero here.
  • The attack does not depend on depth. At unchanged depth the VPI charges telescope (WHITEPAPER.md:850-857), so a same-skew close refunds the full charge anyway. The attacker's deposit leaving before the close only makes the unclamped rebate larger, and the clamp removes that excess.
  • The LP loss comes from redemption pricing. Junior is priced with the charge inside NAV and repriced without it after the close. Fixing the scan item, for example by using commit-time or time-weighted depth for the close, leaves this finding intact.

The five-minute LP request cutoff itself (SECURITY.md:397-398, :1040-1044) does not stop the attack. It limits LP requests into the maturing epoch, while the attacker's redemption is requested hours earlier and the trade is not an LP request.

4. Attack path

One cycle takes about 3 hours and repeats back to back on weekdays.

  1. Epoch e: the attacker calls TrancheVault.requestDeposit(W) on the Junior vault. Anyone settles the epoch, and the attacker calls claimDeposit. This is an ordinary entry.
  2. After the 1 h cooldown: the attacker calls requestRedeem(all shares), which lands in epoch e+2.
  3. 60 s before epoch e+2 starts: from a trader account, the attacker calls OrderRouter.commitOrder for a LONG that brings aggregate skew to about 0.38 × economic depth, just under the skew cap. It then calls executeOrder itself. Execution is permissionless and follows a global FIFO queue (OrderRouter.sol:25, :233-254). The execution price must come from a Pyth update published within 15 s after the commit (PletherOracle.sol:87, :610-612). The VPI charge enters pool cash.
  4. After the epoch boundary: any keeper calls OrderRouter.settleLpEpoch, which reaches HousePool.settleLpEpoch. The charge is reconciled into Junior principal and the attacker's redemption is funded at the raised share price. In the PoC an unrelated keeper does this.
  5. The attacker calls claimRedeem.
  6. The attacker closes the LONG at the same price. The close rebate returns the charge from pool cash, and the remaining Junior holders absorb the drop.

Costs. The attacker pays a 4 bp execution fee on each leg. The opening fee goes to the protocol treasury; the closing fee is deducted from the rebate and stays in the pool (CfdEngineSettlementSidecar.sol:602-628). Each leg also executes at a side-adverse price, shifted by 25 % of the basket confidence (PletherOracle.sol:905-941). The trader leg needs about 1 % margin: initial margin of 20 bp plus the liquidation reserve, fee and VPI.

Deciding whether to run a cycle. At a given price and confidence a cycle's outcome is deterministic, so the attacker can simulate it off-chain before committing. The PoC models this with a snapshot: it runs the cycle and reverts it if the attacker would not come out ahead. In practice the execution price uses a Pyth update published up to 15 s after the commit, so its confidence can differ from the confidence seen when committing; a wrong guess costs at most one cycle's fees and confidence shift.

Timing and price risk. The position is held for about two minutes across the epoch boundary. A basket move in that window is zero-mean and the attack does not need one; the PoC holds the price constant. At an assumed 7 % annual volatility for the dollar basket, two minutes give a standard deviation of roughly 1.6 bp. The charge, the opening fee and the liquidation reserve come out of the 1 % margin, which leaves roughly 55–65 bp above maintenance, more than 30 standard deviations. Over 120 cycles at W = 1 × this adds noise of about ±34 k USDG to an expected profit of 115 k. The cycle runs only on weekdays outside the FAD window, because opens are close-only during FAD and while the oracle is frozen.

5. Impact

  • Loss of other users' principal. Incumbent Junior LPs end up with less than in the honest run and below their starting value, and the attacker ends up with more. Nothing depends on market movement.
  • Material and repeatable. At Senior = Junior and W = 2 ×, the incumbent's 10.00 M falls to 8.53 M in 21 days (test 4). At Senior = 3 × Junior and W = 1 ×, it falls to 8.84 M in 21 days (test 2); with W = 5 ×, to 7.48 M in 10 days (test 3).
  • The leak exists without an attacker. Any LP that redeems while a skew-increasing position is open is paid part of a charge that the position will take back, and the LPs who stay pay for it. In test 8 an ordinary 5 M Junior LP exits while an unrelated trader holds a LONG of 38 % of depth. It receives 8,116 USDG more than if it exits after the trader closes at the same price, and the 10 M LP who stays ends 8,099 USDG worse off. Entry is mispriced the same way: in test 9 a 5 M deposit that activates while the position is open is worth 6,125 USDG less after the close than the same deposit made after the close. There the deposit itself raises depth before the trader closes, so the trader's rebate falls short of its charge and the pool keeps the difference; 6,125 USDG therefore understates the overpayment. This passive leak corroborates the root cause; the severity rests on the attack.
  • Senior is not impaired. The loss falls entirely on Junior LPs.

Bound. The drain stops when the attacker's own exit can no longer be fully funded. At Senior = 3 × Junior that happens at the Junior covenant floor (Junior ≥ Senior × 2000/8000): the drainable fraction of incumbent Junior is 1 − S/(4J), 25 % at S/J = 3 and nothing at S/J = 4, the most Senior the 80 % share cap allows. Below the floor the covenant holds the remaining Junior in place until it is cured (SECURITY.md:1392-1393); this is documented behaviour, and test 3 checks it only to show where the drain ends. At S/J = 1 the covenant floor is at 25 % of the incumbent Junior, so up to 75 % is exposed in principle, but the measured runs stop earlier for funding reasons (§6).

6. Capital and cost

In the PoC one address holds the whole incumbent Junior tranche, so W is a multiple of total Junior TVL, not of one user's balance. All figures are at 3 bp confidence unless noted. A cycle that would leave the attacker worse off than not taking part is not run, so 0 cycles means the attacker would not attack at that setting.

Where the threshold comes from. In one cycle the attacker tops aggregate skew up from K to T = 0.38 of depth D, with notional n = (T − K)·D. The charge is C = vpiFactor·(T² − K²)·D/2, so C/n = vpiFactor·(T + K)/2: 19 bp of notional at K = 0 and 34 bp at K = 0.30. The attacker captures s·C, where s is its share of Junior at the settlement. Its costs are:

  • 4 bp of execution fee on each leg;
  • (2 − s)·δ for the confidence shift, where δ = 25 % of the basket confidence: it loses δ on each leg and gets back its share of the open-leg loss through NAV;
  • its share of the Senior coupon for the roughly two hours it holds Junior (8 % a year, the seniorRateBps default of 800 at HousePool.sol:251).

A cycle pays when

s · C > (8 bp + (2 − s) · δ) · n + s · Senior · coupon · 2 h

The fee and confidence terms grow with depth at the same rate as the charge, so the amount of Senior capital cancels out of them; only the small coupon term depends on Senior. At K = 0 and 3 bp the threshold is s ≈ 49 % (W ≈ 0.95 ×), and at W = 1 × the break-even confidence lies between 3.5 and 4 bp. Both match the tests below. More Senior capital, or a larger W, raises how much each cycle drains but barely moves the threshold. Pre-existing same-direction skew lowers it, because the charge grows with the square of skew while fees grow linearly. At K = 0.30 the formula gives s ≈ 29 % (W ≈ 0.40 ×), and test 6 puts the threshold between 0.4 × and 0.5 ×.

Capital needed with no other traders (test 5, 30 cycles):

W (× incumbent Junior) Cycles run Loss Profit
0.5 0 (not profitable) — —
0.75 0 (not profitable) — —
1 30 252,242 (2.52 %) 16,585
2 30 529,792 (5.30 %) 246,430

Capital needed when an unrelated trader already holds same-direction skew of K % of depth (test 6, 30 cycles; each cell is loss / profit, "—" means not profitable):

K W = 0.25 × 0.33 × 0.4 × 0.5 ×
20 % — — — 107,923 (1.08 %) / 5,435
30 % — — — 65,760 (0.66 %) / 17,121
35 % — — — 28,110 (0.28 %) / 6,348

Existing skew halves the capital the attacker needs, from about 1 × to 0.5 × Junior TVL. Each cycle then drains less, because the attacker's own trade is smaller.

Tranche ratio (test 4). Test 4 first lets the Senior LP redeem two thirds of its shares through the vault, leaving 10 M Senior against 10 M Junior. The attacker then runs up to 120 cycles:

W Cycles, days Incumbent Junior value: start → honest → attack Loss Profit
1 × 120, 21 10.00 M → 9.96 M → 9.35 M 613,755 (6.14 %) 61,040
2 × 120, 21 10.00 M → 9.97 M → 8.53 M 1,431,164 (14.31 %) 699,788
3 × 88, 15 10.00 M → 9.98 M → 8.40 M 1,581,205 (15.81 %) 910,833

With less Senior capital each cycle drains less, but the capital threshold is the same. At an assumed 8 % cost of capital, W = 1 × keeps only about 15 k of its 61 k, while W = 2 × keeps about 608 k of 700 k, so W = 2 × is the representative case at this ratio. The W = 3 × run stops after 88 cycles because the attacker's 30 M redemption no longer fits in the free cash the pool keeps after reserving for the attacker's own open position, so the redemption is not fully funded. That is a funding limit, not the covenant.

Oracle confidence adds a cost on both legs (test 7, 30 cycles):

Basket confidence W Loss Profit
0 bp 1 × 316,819 (3.17 %) 81,293
1 bp 1 × 295,309 (2.95 %) 59,740
2 bp 1 × 273,784 (2.74 %) 38,171
3 bp 1 × 252,242 (2.52 %) 16,585
3.5 bp 1 × 241,469 (2.41 %) 5,791
4 bp 1 × not profitable —
9 bp (ceiling 10 bp) 2 × 392,153 (3.92 %) 108,515
9 bp (ceiling 10 bp) 5 × 953,069 (9.53 %) 531,205

Observed confidence. Hermes historical prices for 30 weekdays from 2026-09-21 to 2026-10-30, sampled every 2 hours (347 samples), give a median relative confidence of 0.26 bp for EUR/USD (90th percentile 0.44 bp) and 0.32 bp for USD/JPY (90th percentile 0.44 bp). Together these two feeds carry 71 % of the basket weight. Our API access did not cover the other four feeds (GBP, CAD, SEK, CHF), so the basket estimate adds them at the highest relative confidence seen for each in two on-chain snapshots, a fixed 0.82 bp. The resulting basket estimate has a median of 1.01 bp, a 90th percentile of 1.11 bp and a maximum of 1.29 bp, with no meaningful difference by hour of day. Every sample is far below the 3.5 bp at which W = 1 × stops paying, and the 3 bp used throughout the PoC is about three times the observed median. At 1 bp, W = 1 × earns 59,740 over 30 cycles instead of 16,585 (test 7). The attacker can check the current confidence before committing and skip a cycle when it is high.

Capital. The capital carries no price risk outside the two-minute window and is needed for about 3 hours per cycle; cycles run back to back, so W stays committed for the whole run. A flash loan cannot cover it. We have not checked how much USDG can be borrowed on Arbitrum or at what rate, so the 8 % a year used here is an assumed cost of capital. At that rate the cost is about 46 k USDG for W = 1 × over 21 days, against a profit of 115 k, and about 110 k for W = 5 × over 10 days, against 1.57 M. The trader leg needs margin of about 1 % of its notional, held for a few minutes.

7. Severity

The program assesses impact first, with the release parameters in DEPLOYMENT.md, and says feasibility limits affect only the payout, not the severity. The impact here is an attributable, deterministic and repeatable reduction of other users' Junior principal, with a positive expected profit for the unprivileged party that causes it. Capital, cost of capital and detection time are feasibility limits in that sense.

It is principal, not yield. In every scenario the incumbent ends below its starting value, not merely below the honest run: 10.00 M to 8.53 M in test 4, 8.84 M in test 2 and 7.48 M in test 3, while the honest runs end at 9.89–9.97 M.

The program's exclusions for basic economic attacks and Sybil attacks do not fit either. Nothing is bought or sold against outside liquidity, no market price moves, and no per-account limit is bypassed. One party needs an LP position and a trader account. The loss comes from the accounting itself: the protocol keeps an expected VPI clawback out of LP value, but lets LPs withdraw against an expected VPI refund (§3). It needs a code fix.

Expected objections:

  • "The profit is thin; this is griefing." After an assumed 8 % cost of capital the attacker keeps 42 % of the victims' loss at W = 2 × (test 4) and 59 % at W = 5 × (test 3); at W = 1 × it keeps 7 % (test 2). Measured against the honest run, the rest of the victims' loss is the attacker's opening fees, which reach the treasury and do not reduce that loss. In every case there is a profit motive.
  • "This is the documented timing risk." It is not: the documented risk is NAV moving with real events; here NAV is raised by a deposit that must reverse, and the attacker controls both ends (§3).
  • "It needs a lot of capital." The capital is a multiple of Junior TVL: about 1 × with no other traders and 0.5 × when others already hold skew. It is needed for about 3 hours per cycle and carries no price risk outside a two-minute window. Both the loss and the profit scale with Junior TVL, so the percentages hold at any pool size, apart from fixed per-transaction costs such as gas and Pyth update fees.
  • "The loss is bounded." It is bounded by the attacker's ability to fund its own exit and, at S/J = 3, by the covenant floor, which caps the drain at 25 % of Junior (§5). Within that bound it is repeatable and cumulative.
  • "Governance can pause it." It can. HousePool.pause() needs no timelock and can be called by the owner o

The original report as published on Immunefi, by Sharkeeeeeee. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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 open's VPI charge is recorded as pool revenue and included in the terminal NAV used to price tranche redemptions, although the lifetime clamp later refunds it to the same position, so the refundable deposit is treated as distributable equity.

Impact

Incumbent Junior LPs could lose principal, with the PoC showing their 10.00 M falling to 8.53 M over 21 days in one scenario, bounded by the Junior covenant floor; Senior capital is not impaired.

What the attacker needed

Junior deposit of roughly incumbent size; Trader account with ~1% margin; Capital locked about 3 hours per cycle; Weekday, outside FAD window

The fix

The refundable VPI charge should be excluded from the NAV used to price tranche redemptions, or held in a reserve that LPs cannot withdraw against until the position closes, as the protocol already does for expected clawbacks.

How it was found

  1. Request a Junior deposit and claim it after the epoch settles.
  2. After the one-hour cooldown, request redemption of all shares, landing in a later epoch.
  3. Shortly before that epoch starts, commit and execute a large LONG that brings skew close to the cap, paying the VPI charge into the pool.
  4. After the epoch boundary, a keeper settles the LP epoch, pricing the redemption at the raised share price.
  5. Claim the redemption.
  6. Close the LONG at the same price so the charge is refunded, leaving the remaining Junior LPs to absorb the drop.

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.

A pool of investors (LPs) shares profit and loss by owning 'shares' whose price is based on the pool's cash. Traders pay a temporary fee when they open a trade that pushes the pool's overall market exposure (skew) in one direction, and that fee is returned when they close. Here the pool counted the temporary fee as real cash belonging to the LPs, so someone who owned shares could cash out at an inflated price just before the fee was returned, and the investors who stayed paid the difference.

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.

More from Plether

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.