Lifetime VPI clamp is bypassed across roles: a trader who also makes the Junior deposit profits from the minority VPI depth attack
A trader who also makes a Junior deposit can profit from the minority VPI depth attack: the skew-reducing open pays a rebate and locks it in a reserve excluded from NAV, so the trader's own Junior deposit activates at a depressed NAV, and the close's lifetime clamp returns the full reserve into the enlarged share base. The incumbent Junior LPs fund the whole rebate but recover only their diluted share, letting the attacker withdraw a portion of the clawback as USDG.
Originally disclosed on Immunefi
- Disclosed after under an hour
#97969 [SC-Critical] Lifetime VPI clamp is bypassed across roles: a trader who also makes the Junior deposit profits from the minority VPI depth attack
Submitted on Nov 4th 2026 at 05:38:45 UTC by @tinnohofficial for Audit Competition | Plether
- Report ID: #97969
- Report Type: Smart Contract
- Report severity: Critical
- Target: https://github.com/immunefi-team/audit-comp-plether/blob/a82d4fefb02768e5b3bddcc97dee371eee24fea8/packages/perps/src/HousePool.sol
- Impacts:
- Theft of unclaimed yield
Description
Summary
Plether treats this sequence as an attack: open a skew-reducing ("minority") position to receive a negative-VPI rebate, add about 10x pool depth through a Junior deposit, then close. The audited suite keeps a regression test for it, VpiDepth.t.sol:75-105 test_MinorityVpiRebateCannotExceedPaidCharges, which runs the sequence at the release vpiFactor (0.01e18) with an asynchronous Junior deposit that activates between the open and the close, and asserts "Minority VPI depth attack must not be profitable". The fix behind it is the lifetime clamp, and the clamp works: the close recovers the whole rebate from the trader account into HousePool.
The invariant fails across roles. When the trader is also the Junior depositor, the same sequence is profitable for that actor:
- the skew-reducing open pays the rebate out of HousePool and locks the same gross amount in the trader's dedicated, nonwithdrawable VPI reserve;
- by design, that reserve is outside terminal NAV, so the trader's own Junior deposit activates at a NAV that counts the cash that left but not the reserve that must come back;
- the close hits the lifetime clamp, which moves the full reserve back into HousePool, where the new shares participate in proportion to their ownership (about 90% in the project's 9M/1M fixture, about one-third in the deployed-release fork);
- the incumbent Junior LPs paid for the whole rebate but recover only their diluted share.
The project's assertion measures only the trader's clearinghouse balance, and in its fixture the 9M deposit is made by bob, the incumbent Junior LP himself, so entrant and incumbent are the same account and no cross-cohort transfer can appear. Changing that one argument to the trader makes the attack profitable while the trader-only assertion still passes.
| Reproduction | Attacker | Incumbent Junior | Same trades, close before activation (attacker / incumbent) |
|---|---|---|---|
| Project test above, core sequence with the trader as depositor | +54.468502 | −134.561337 | −80.238818 / +0.011411 |
| Deployed Arbitrum Sepolia v2.0.0 bytecode (fork), real on-chain Pyth FX prices and confidences, attacker capital $1.175M, honest Senior depth | +6,401.012883 | −13,925.599554 | −7,638.359370 / +113.772699 |
| Same fork, three consecutive cycles | +19,446.202466 | −42,020.260846 | n/a |
| Same fork, every feed at 9.5 bps confidence (release cap 10 bps) | +2,859.996510 | −10,384.583181 | −11,803.514078 / +4,278.927406 |
In the real-confidence fork run, moving only the close from before activation to after activation moves exactly 14,039.372253 USDG from incumbent Junior LPs to the attacker. Honest Senior LPs receive the same +216.306167 coupon in both branches. In the project-test run the attacker's trader account still loses 80.246209, so the project's own assertion keeps passing while the actor's combined wealth gains.
Selected severity: High, theft of unclaimed yield. The attacker withdraws, as USDG, a share of the later-collected VPI clawback that the incumbent LPs funded, with no privileged step. The PoCs show deterministic accounting on fixed-price paths and demonstrate repetition; live profit remains exposed to ordinary Junior NAV, market and liquidity changes until redemption.
What is documented, and what this report contests
1. Not contested: the reserve is deliberately outside terminal K and symmetric NAV. ACCOUNTING_SPEC.md:140-142 classifies VPI and action reserves as "separate realized-settlement quantities, not marked price PnL"; ACCOUNTING_SPEC.md:1064-1066 and SECURITY.md:871-872 say the VPI reserve does not inflate terminal K or symmetric LP NAV; WHITEPAPER.md:887-888 and ACCOUNTING_SPEC.md:821-822 state the custody consequence, that LPs cannot withdraw the reserve as marked equity before the matching obligation settles. This report keeps all of that. These passages do not address whether the trader may also be the incoming LP and share the later collection of its own, already-funded clawback.
2. Contested: the composition defeats the project's stated VPI round-trip goal.
- The regression test above descends from the fix
6d0aeb1e"Fix C-02: replace stateless entryDepth with stateful vpiAccrued bound", whose commit message states the goal: "users can never extract net VPI profit regardless of depth changes". The original test describes the attack as "Attacker opens minority position (receives VPI rebate) at low depth, depth inflates, then closes" and inflates depth "by 10x via LP deposit". At that commit, SECURITY.md listed the same sentence under "These properties must always hold. Violation indicates a critical bug." - The audited code and docs keep the goal: the clamp comment at
CloseAccountingLib.sol:112-118("Prevents LP sandwich attacks … to extract a net-negative lifetime VPI rebate"),SECURITY.md:1443("the lifetime clamp intentionally zeroes otherwise extractable rebate-only round trips") andVpiRoundTripAccounting.t.sol:36-64("Depth manipulation round-trip must not produce positive PnL"). MinorityVpiDepthAttackWithAttackerDeposit.t.solinherits the project test class unchanged. Its attack branch preserves the original trade, deposit, activation and close parameters while changing the depositor frombobtoalice; it adds snapshots, combined-wealth accounting, redemption after the cooldown, and a control branch that closes before activation. The clamp does its job on the trader account; the value comes back through the share price of the deposit that the attack scenario itself relies on.
3. No document accepts this for VPI, while the analogous carry transfer is accepted explicitly. For carry, the project wrote the policy down: an incoming LP may time collection after activation, "a collection-time ownership policy" (ACCOUNTING_SPEC.md:731-740, WHITEPAPER.md:966-977), and pinned it with tests that "deliberately retain this timing policy" (CarryLpOwnership.t.sol:9-10) and assert "collection timing intentionally permits the incoming LP to share old carry" (:96). No source, NatSpec, document or test says the same for VPI; the VPI tests assert the opposite for depth round trips. Carry is uncollateralized trader debt, whereas the negative-VPI balance has already left HousePool and the identical amount sits in protocol custody, protected from every other use (SECURITY.md:376, :866-870) until the clamp forces it back.
4. The project's JIT defence is respected and does not help. The defence is the activation-aged cooldown: TrancheVault.sol:38 sets DEPOSIT_COOLDOWN = 1 hours; SECURITY.md:400 specifies activation-aged semantics, and HousePoolDeposits.t.sol:262-272 exercises the JIT block. Every PoC waits it out before redeeming. The ownership dilution is fixed by activation and collection, but the attacker still bears ordinary Junior NAV, market and liquidity risk until redemption; the PoCs hold oracle prices constant.
5. Relation to SC-H1. The pre-audit's SC-H1, "Deposit Before Yield is Accrued Allows to Dilute Yield", was fixed by rewriting Senior accounting ("This change requires a second audit"). This report reaches the same deposit-before-recognition dilution class through a current, previously untested mechanism: Junior issuance across protected negative-VPI backing, which the Senior rewrite did not address. If triage groups it with SC-H1, the PoCs show the class is still exploitable at a82d4fef.
General epoch-timing language (WHITEPAPER.md:679-682, :742-746) is the strongest remaining objection. It warns that trading stays live during the quiet period and that a matured request is priced at the snapshot when it is settled. It does not say that a VPI round trip may be timed around the actor's own activation to take incumbents' clawback, which is the outcome the clamp was added to prevent.
Root cause
- The open pays the rebate from HousePool and locks it.
CfdEnginePlanLib.sol:331-349setspoolRebatePayoutAssetsand the reserve targetmax(-vpiAccrued, 0).CfdEngineSettlementSidecar.sol:442-478pays the net rebate withpool.payOutand callslockVpiRebateReserve.:905-925has the pool fund the execution-fee top-up. HousePool's total cash decrease equals the gross reserve exactly: 41,551.656589 USDG on the fork, asserted. - Activation NAV excludes the reserve (by design, see above).
HousePoolAccountingLib.sol:60-79computesphysicalAssets − traderClaims + terminalPriceDelta.HousePool.sol:824-940reconciles that snapshot and activates Junior deposits at it. The dip falls entirely on Junior; Senior is unimpaired. - The close forces the full reserve back into the enlarged share base.
CloseAccountingLib.sol:112-118clamps the lifetime VPI to be non-negative. The entrant's deposit adds depth, so the fresh close charge on its own would be smaller than the rebate; the clamp still collects the full old accrual.CfdEngineSettlementSidecar.sol:690-720consumes the trader's reserve into HousePool, now owned in part by the new shares. - A large reducing open is reachable. The 40% skew cap is enforced only in the open planner (
CfdEnginePlanLib.sol:468-480,WHITEPAPER.md:844-848), and an open that strictly reduces the imbalance is admitted above it. Ordinary closes do not pass that gate, and the whitepaper explicitly notes that one-sided liquidations can leave a skewed live book (WHITEPAPER.md:1507-1511).
Attack on the deployed release (fork PoC)
The deployed pool at block 324,032,051 holds 2,000,002 USDG with no positions. Honest LPs add 6.9M Senior and 1.1M Junior; after coupon allocation the logged principals are 7,900,247.560016 Senior and 2,099,754.439984 Junior. Unrelated traders open 95,000-lot (9.5M-unit) LONG and SHORT positions in cap-compliant steps, then the SHORT closes. This leaves a standing LONG of 9,135,100.63 USDG notional at the real basket mark 0.96158954, about 91% of depth. Then:
- The attacker requests a 1,050,000 USDG Junior deposit and holds 125,000 USDG of trader collateral.
- Thirty seconds before the epoch boundary, the attacker opens a 95,000-lot SHORT through
OrderRouter.commitOrder/executeOrder. The open reduces skew and is admitted above the cap. HousePool pays out 41,551.656589 and the same amount is locked as the reserve. - At the boundary, a permissionless
OrderRouter.settleLpEpochactivates the deposit at the post-rebate NAV. - The attacker closes the SHORT at the same oracle prices. The clamp moves the full reserve back into HousePool.
- After the one-hour cooldown, the attacker requests redemption,
settleLpEpochfunds it, and the attacker withdraws 1,063,820.721435.
The control runs the same trades with the close before activation. Prices, fees, confidence and sizes are identical; only the order relative to activation differs.
Economics and preconditions
- Capital. $1.175M from the attacker (1.05M LP capital + 125k trader collateral), below the program's $100M high-capital threshold. Honest Senior capital supplies most of the depth that sizes the VPI, but only incumbent Junior ownership is diluted.
- Book state. The fork uses a close-created book at ~91% of depth. Closes and one-sided liquidations are not skew-capped, so such books are reachable with ordinary trading. The attacker also does not need someone else's skew: in the harness's self-built variant one actor builds the balanced book, closes one side and pays every on-protocol setup cost (fees, confidence shifts, VPI, carry). It breaks even in cycle 6 and ends +69,670.111231 after ten cycles and a full flatten. That variant does not model hedging the standing LONG off-protocol.
- Costs. Execution fees (4 bps each way) and the adverse-confidence shift (25% of basket confidence). At the fork block the real Arbitrum Sepolia Pyth confidence was 0.18–0.94 bp per feed (EUR/USD 0.18, USD/JPY 0.19, USD/CAD 0.29, GBP/USD 0.30, USD/CHF 0.36, USD/SEK 0.94), which is why the real-confidence run earns more than the 9.5-bps run. Pyth update fees and gas are not modelled.
- Timing and repetition. A live cycle takes about three hours across deposit activation, the one-hour cooldown and redemption. The redeemed amount exceeds the next 1.05M deposit, so one capital lot is economically reusable. The fork helper mints a fresh test-token lot before each measured cycle rather than literally recycling the prior balance; its three cycles earn +19,446.202466 in total (+6,401.012883, +6,481.650544 and +6,563.539039), while incumbent Junior loses 42,020.260846. The harness's self-built ten-cycle test pre-funds one lot and reuses it.
Severity
High: theft of unclaimed yield. The protocol books the clawback as LP-owned value when it is collected. The attacker diverts a dilution-weighted share of that value from the incumbent Junior LPs who funded the rebate. The path is permissionless and repeatable, and the PoCs withdraw the gain as USDG; the exact live gain is not deterministic because the entrant retains Junior risk until withdrawal.
Critical, direct theft of LP funds, is arguable: the incumbents' vault value ends below its pre-attack level because the rebate was paid out of their principal. This report does not select Critical because the protocol accounts for VPI at collection rather than as marked principal.
Known-issue comparison
- Pre-audit SC-H1 ("Deposit Before Yield is Accrued Allows to Dilute Yield"): same dilution class, reached here through a current Junior/negative-VPI-reserve mechanism that the Senior rewrite did not address (see above).
- AI scan, two info items ("Temporary pool liquidity can reduce a skew-increasing close charge"; "Temporary pool-liquidity reduction can amplify a skew-reducing close rebate") change the fresh close VPI amount through execution-time depth. Here the clamp collects the full old accrual regardless of depth, and the gain comes from share issuance across that collection.
- SC-M3 (negative
vpiAccruedomitted from post-open IMR) is fixed and unrelated to LP pricing. - SECURITY.md Known Limitations (VPI, LP accounting) mention neither entrant capture of a reserve clawback nor any exception to the minority-VPI-depth property.
Recommendation
Keep custody and redemption funding unchanged and fix ownership pricing:
- include the protected aggregate negative-VPI reserve, which equals the guaranteed clawback, in deposit and redemption share pricing, while still excluding it from redemption funding capacity, exactly as marked price receivables are handled; or
- attribute each reserve's realization to the Junior ownership set that funded it; or
- defer Junior deposit activation while a material negative-VPI reserve is outstanding.
Extend VpiDepth.t.sol::test_MinorityVpiRebateCannotExceedPaidCharges to assert on the actor's combined trader and LP wealth with the trader as depositor, and keep the symmetric entry/exit NAV tests passing.
References
- First-party attack definition:
test/perps/accounting/fees/VpiDepth.t.sol:75-105;test/perps/accounting/close/VpiRoundTripAccounting.t.sol:36-64;src/libraries/CloseAccountingLib.sol:112-118;SECURITY.md:376,400,1443; commit6d0aeb1e4113206c10291004626a207de8a66559. - NAV policy text:
ACCOUNTING_SPEC.md:140-142,731-740,821-822,1064-1066;SECURITY.md:863-872;WHITEPAPER.md:679-682,742-746,887-888,966-977;test/perps/accounting/carry/CarryLpOwnership.t.sol:9-10,96. - Mechanics:
src/libraries/CfdEnginePlanLib.sol:331-349,468-480;src/CfdEngineSettlementSidecar.sol:442-478,690-720,905-925;src/libraries/HousePoolAccountingLib.sol:60-79;src/HousePool.sol:824-940;src/TrancheVault.sol:38. - Deployment:
deployments/releases/2026-10-28-perps-arbitrum-sepolia-v2.0.0/{manifest.json,addresses.env}.
Proof of Concept
Proof of Concept
All tests run at commit a82d4fefb02768e5b3bddcc97dee371eee24fea8 with packages/perps/src unmodified. Each command
below was run twice; both runs produced identical pass counts, gas figures and logged values (only timing differs).
What each test shows
| File | Environment | Shows |
|---|---|---|
MinorityVpiDepthAttackWithAttackerDeposit.t.sol |
Project test class VpiDepthTest (inherited, unchanged) |
The project's own "minority VPI depth attack" regression, with the 9M Junior deposit made by the trader instead of the incumbent Junior LP, is profitable for that actor; the project's trader-account assertion still passes. The five inherited project tests also pass in the same run. |
VpiReserveEntryDilutionDeployedFork.t.sol |
Fork of the deployed Arbitrum Sepolia v2.0.0 release | Attack vs control on the deployed bytecode with the production V3 Router, six-feed oracle and the real on-chain Pyth FX prices/confidences; three consecutive cycles. |
VpiReserveEntryDilution.t.sol |
Suite harness (BasePerpTest) with release risk/fee/Router parameters |
Attack vs control on a 98%-nominal close-created book, three cycles reusing the same standing skew, and a self-built variant in which one actor creates the skew, pays every on-protocol setup cost and still profits. |
Environment fidelity
- Project-test variant. Identical fixture, risk parameters (
vpiFactor = 0.01e18), sizes, prices and helpers astest/perps/accounting/fees/VpiDepth.t.sol:75-105. The attack branch preserves the project's core sequence and changes the depositor passed to_fundJuniorDelayed(in the project test it isbob, the incumbent Junior LP); the PoC additionally adds measurement, redemption after the cooldown and a control branch that closes before activation. Like the original, it uses the suite's_fundJuniorDelayed/_settleAvailableJuniorWithdrawalhelpers (they install the mark and callHousePool.settleLpEpochfrom the Router address, the same callback the publicOrderRouter.settleLpEpochperforms) and the project's mock Pyth. - Deployed-release fork. Block 324,032,051 (Thu 2026-10-29 14:00 UTC; deployed pool = 2,000,002 USDG, no
positions). The release source
1209ca8ahas nopackages/perps/srcdifference froma82d4fef.setUpasserts the runtime code hashes of nineteen deployed contracts on the exercised path againstdeployments/releases/2026-10-28-perps-arbitrum-sepolia-v2.0.0/manifest.json. Only out-of-scope dependencies are replaced: the Pyth address is etched with the suite'sMockPyth, which replays the real Pyth price, confidence and exponent stored on-chain for each of the six basket feeds at the fork block, and Arbitrum's ArbSys precompile, which the Router reads for the L2 block number, is shimmed toblock.number(in fork state address 100 holds only a one-byte placeholder and calls to it revert). MockUSDG is the deployed, publicly mintable test token. Trades use the productionOrderRouter.commitOrder(OrderRequest)andexecuteOrder; LP epochs use the permissionlessOrderRouter.settleLpEpoch; LP requests and claims use public vault methods. Prices are held constant. The book is 95,000 lots because at the real basket mark (~0.9616) a SHORT's maximum profit islots x (2.00 - mark), so a larger balanced book does not pass the solvency check on a ~10M pool._cycle()mints a fresh 1.05M test-token lot before each measured cycle (the previous cycle redeems more than that, so reuse is economically feasible, but the three-cycle test does not literally recycle the balance). - Harness.
BasePerpTestuses two uniform mock feeds, $1,000 seeds per tranche, the test-onlyLegacyOrderRouterHarness.commitOrderscalar adapter (it self-delegatecalls the production V3 commit path) and every fill at the 10-bp basket confidence cap with the 25% adverse multiplier. Execution and LP settlement use the Router. The ordinary three-cycle helper mints LP capital each cycle; the self-built ten-cycle test pre-funds one lot and reuses it. The self-built variant counts all on-protocol fees, confidence shifts, VPI, carry and a final flatten; it excludes gas, Pyth fees, capital cost and any off-protocol hedge of the standing LONG.
Run
git clone --recurse-submodules https://github.com/immunefi-team/audit-comp-plether.git
cd audit-comp-plether && git checkout a82d4fefb02768e5b3bddcc97dee371eee24fea8
git submodule update --init --recursive
# save the three files below under packages/perps/test/poc/
forge test --root packages/perps --match-path test/poc/MinorityVpiDepthAttackWithAttackerDeposit.t.sol -vv
forge test --root packages/perps --match-path test/poc/VpiReserveEntryDilution.t.sol -vv
# fork test: any Arbitrum Sepolia archive RPC (block 324,032,051 must be available)
export ARB_SEPOLIA_RPC_URL=<arbitrum-sepolia-archive-rpc-url>
forge test --root packages/perps --match-path test/poc/VpiReserveEntryDilutionDeployedFork.t.sol -vv
USDG amounts in the logs use six decimals.
Output: project-test variant
Ran 6 tests for test/poc/MinorityVpiDepthAttackWithAttackerDeposit.t.sol:MinorityVpiDepthAttackWithAttackerDepositTest
[PASS] test_MinorityVpiRebateCannotExceedPaidCharges() (gas: 8009357)
[PASS] test_SizeAdditionCannotBypassVpiBound() (gas: 8850266)
[PASS] test_VpiRebateReserve_BlocksRebateExtractionAcrossWithdrawAndFullClose() (gas: 4790926)
[PASS] test_VpiReserveOverfund_DoesNotImproveExactPriceHealth() (gas: 2871714)
[PASS] test_VpiReserveUnderfund_FailsClosedAsIndependentDelinquency() (gas: 3003092)
[PASS] test_projectMinorityVpiDepthAttack_attackerIsTheDepositor() (gas: 15172946)
Logs:
ATTACK gross VPI reserve locked at open 149670784
ATTACK pool cash decrease at open 149670784
ATTACK alice trader-account delta (project metric) -80246209
ATTACK alice total delta (trader + own 9M Junior deposit) 54468502
ATTACK bob incumbent Junior delta -134561337
ATTACK alice redeemed Junior assets 9000134714711
CONTROL alice trader-account delta -80222380
CONTROL alice total delta -80238818
CONTROL bob incumbent Junior delta 11411
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 18.02ms (35.07ms CPU time)
alice trader-account delta is the project's own metric (assertLe(aliceBalAfter, aliceBalBefore, ...) still
passes). alice total delta adds the trader's own 9M Junior deposit, redeemed after the cooldown through the
project's helper. The incumbent (bob, 1M Junior) loses 134.561337 in the attack and gains 0.011411 in the control.
Output: deployed-release fork
Ran 3 tests for test/poc/VpiReserveEntryDilutionDeployedFork.t.sol:VpiReserveEntryDilutionDeployedForkTest
[PASS] testFork_maxConfidence_seniorBackedAttackVsControl() (gas: 29802107)
Logs:
SCENARIO max confidence (9.5 bps per feed)
deployed pool assets at fork 2000002000000
deployed basket mark 96158954
pool assets after honest LP funding 10000002000000
senior principal 7900247560016
junior principal 2099754439984
standing LONG notional 9135100630000
pool assets before cycle 10046017622467
gross VPI reserve 41553522312
pool cash decrease at reducing open 41553522312
ATTACK attacker delta 2859996510
ATTACK incumbent Junior delta (deployed LP + JUNIOR_LP) -10384583181
ATTACK honest Senior delta (deployed LP + SENIOR_LP) 216306167
ATTACK attacker redeemed assets 1064483454674
CONTROL attacker delta -11803514078
CONTROL incumbent Junior delta 4278927406
CONTROL honest Senior delta 216306167
[PASS] testFork_realConfidence_seniorBackedAttackVsControl() (gas: 29742824)
Logs:
SCENARIO real Pyth confidence at fork block
deployed pool assets at fork 2000002000000
deployed basket mark 96158954
pool assets after honest LP funding 10000002000000
senior principal 7900247560016
junior principal 2099754439984
standing LONG notional 9135100630000
pool assets before cycle 10041847185377
gross VPI reserve 41551656589
pool cash decrease at reducing open 41551656589
ATTACK attacker delta 6401012883
ATTACK incumbent Junior delta (deployed LP + JUNIOR_LP) -13925599554
ATTACK honest Senior delta (deployed LP + SENIOR_LP) 216306167
ATTACK attacker redeemed assets 1063820721435
CONTROL attacker delta -7638359370
CONTROL incumbent Junior delta 113772699
CONTROL honest Senior delta 216306167
[PASS] testFork_realConfidence_threeConsecutiveCycles() (gas: 35970361)
Logs:
deployed pool assets at fork 2000002000000
deployed basket mark 96158954
pool assets after honest LP funding 10000002000000
senior principal 7900247560016
junior principal 2099754439984
standing LONG notional 9135100630000
pool assets before cycle 10041
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 protected negative-VPI reserve is excluded from deposit share pricing, so an incoming Junior depositor buys shares at a NAV that ignores cash that must return to the pool, and the lifetime clamp then returns that cash into the enlarged share base.
Impact
The attacker could divert a dilution-weighted share of the VPI clawback from the incumbent Junior LPs who funded the rebate, though the exact live gain is not deterministic because the entrant retains Junior NAV, market and liquidity risk until redemption.
What the attacker needed
Attacker capital of about $1.175M; a skewed book at high depth; deposit activates between open and close; one-hour cooldown waited out
The fix
Ownership pricing should include the protected aggregate negative-VPI reserve in deposit and redemption share pricing, or attribute each reserve's realisation to the Junior ownership set that funded it, or defer Junior deposit activation while a material reserve is outstanding.
How it was found
- The attacker requests a large Junior deposit and holds trader collateral.
- Shortly before the epoch boundary the attacker opens a skew-reducing short, which is admitted above the cap and pays a rebate while locking the same amount as a reserve.
- At the boundary a permissionless epoch settlement activates the deposit at the post-rebate NAV.
- The attacker closes the short at the same oracle prices, and the clamp moves the full reserve back into the pool.
- After the one-hour cooldown the attacker requests redemption, the epoch is settled, and the attacker withdraws the proceeds.
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 trader opens a position that reduces the pool's imbalance and gets a rebate, while the same amount is set aside in a reserve that is deliberately left out of the pool's share price. If that trader also deposits into the Junior tranche, their new shares are priced as if the reserve did not exist, so they buy in cheaply. When the position closes, the reserve flows back into the pool and the attacker's cheap shares capture part of it, at the expense of the existing Junior depositors who paid the rebate.
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.