Junior LP redemption funded before close-VPI rebate transfers value from remaining LPs to the exiting trader
An existing Junior LP could request redemption, then open a trade that pays positive virtual price impact into the pool, and have the redemption funded and shares burned at the inflated valuation before the same trade's offsetting close rebate is paid out. This shifts value from the remaining Junior LPs to the exiting trader, measured locally as roughly $1,733 to $1,854 of terminal value.
- Disclosed after under an hour
#99606 [SC-Critical] Junior LP redemption funded before close-VPI rebate transfers value from remaining LPs to the exiting trader
Submitted on Nov 14th 2026 at 13:08:15 UTC by @AGalx for Audit Competition | Plether
- Report ID: #99606
- Report Type: Smart Contract
- Report severity: Critical
- Target: https://github.com/immunefi-team/audit-comp-plether/blob/a82d4fefb02768e5b3bddcc97dee371eee24fea8/packages/perps/src/HousePool.sol
- Impacts:
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
Description
Brief/Intro
An attacker who already holds Junior LP shares can request redemption, open a trade that pays positive virtual price impact (VPI) into HousePool, and have part of the redemption funded and its shares burned at the VPI-inflated Junior valuation before the same trade closes. On close, the negative VPI rebate can return the previously collected amount to the trader, but the shares already funded for redemption have been burned and cannot absorb the ensuing pool-value reduction. The remaining Junior LPs bear the corresponding loss. In matched local Foundry tests, funding the redemption before rather than after the close transfers $1,853.953547 (0 bps confidence) or $1,733.062817 (10 bps) of terminal value from the remaining Junior LP cohort to the exiting trader/LP. A fourth, no-claim witness confirms that funding/share burn before close—not the subsequent ERC20 claim time—is the operative boundary, with no oracle-price movement or privileged attacker action. If deployed with the tested configuration and sufficient liquidity, the sequence could extract existing Junior LP value through the settlement order alone.
Vulnerability Details
Root cause: redemption is funded on recognized positive VPI before the same position's offsetting close rebate is settled
The assessed source is the Plether Immunefi competition snapshot at commit a82d4fefb02768e5b3bddcc97dee371eee24fea8. The affected interaction crosses CfdEngineSettlementSidecar.sol (trade cash flows and rebate payment), HousePool.sol (reconciliation, redemption pricing and funding), and TrancheVault.sol (pending redemption shares, burn, escrow and claim). The issue is not a price manipulation or an unauthorized transfer from a trader account: it concerns when a future, contingent repayment associated with a trader’s VPI is recognized relative to an LP’s irreversible redemption funding.
1. Opening a skew-increasing position adds positive VPI to recognized pool cash and Junior NAV. CfdMath.calculateVPI() returns a positive charge when the trade increases skew cost. CfdEngineSettlementSidecar.executeOpen() collects tradeCostAssets and records the resulting revenue arriving at the pool:
if (delta.tradeCostAssets > 0) {
uint256 poolCashInflowAssets = uint256(delta.tradeCostAssets) - protocolFeeCreditedAssets;
if (poolCashInflowAssets > 0) {
IHousePool(host.pool()).recordClaimantInflow(
poolCashInflowAssets,
IHousePool.ClaimantInflowKind.Revenue,
IHousePool.ClaimantInflowCashMode.CashArrived
);
}
}
In the PoC, Charlie's LONG pays positive opening VPI of $3,497.726792 (0 bps) or $3,496.328471 (10 bps). The test asserts the corresponding increase in HousePool.totalAssets(), and that the Junior NAV rises before the redemption is funded. At 10 bps, the Engine also reports an +$800 terminal LP price delta. The PoC measures and retains that additional NAV component, rather than misattributing the entire NAV movement to VPI.
2. An existing LP can prepare a redeem request while the shares still participate in the pricing supply. TrancheVault.requestRedeem() transfers Charlie's shares into the vault escrow, but does not burn them:
_transfer(owner, address(this), shares);
requestId = _enqueueRedeemRequest(shares, controller);
The PoC explicitly asserts that totalSupply() and Junior NAV remain unchanged by the request alone. Charlie can therefore request redemption after the normal deposit cooldown, wait for the public epoch to mature, and only then open the VPI-paying LONG shortly before settlement. This request is not the payout: no value is extracted until the pool funds the redemption and the vault pays the claim.
3. The pool funds the maturing Junior redemption using the currently reconciled pricing state and available withdrawal budget. HousePool._settleLpEpoch() reconciles its Engine input, captures Junior principal and supply, and computes the capacity left after senior obligations and other withdrawal constraints:
_reconcile(accountingSnapshot, statusSnapshot);
_checkpointEngineCarryIndexes();
RedemptionPhase memory juniorPhase;
juniorPhase.pricingPrincipal = juniorPrincipal;
juniorPhase.pricingSupply = _juniorShareSupply();
When a Junior redemption is fundable, HousePool._fundRedemptionPhase() transfers the funded USDG to TrancheVault and invokes fundRedeemEpoch(). The vault increments fundedShares / fundedAssets, escrows the assets and burns the funded shares. The pool's liquidity protections can limit the first funding but, in the reproduced attack, do not eliminate this pre-close funding. The PoC handles any remaining shares with a second settlement after the close. It counts only actually paid USDG and any residual assets once, not a withdrawal preview.
4. The close reimburses VPI after some Junior ownership has already exited. When a close generates an action rebate that can be paid, CfdEngineSettlementSidecar._executeClose() transfers cash out of HousePool and credits Charlie's trader settlement balance:
if (delta.actionRebatePaidAssets > 0) {
IHousePool(host.pool()).payOut(address(clearinghouse), delta.actionRebatePaidAssets);
clearinghouse.settleAssets(delta.account, int256(delta.actionRebatePaidAssets));
}
In the attack witness, the recorded gross close VPI is the negative of Charlie's positive opening VPI, reaching the lifetime rebate clamp; the test reconciles the actual credited rebate after PnL, fees and carry. The already-funded redemption cannot be repriced after this rebate leaves the pool. Bob's remaining Junior shares therefore bear the reduction that Charlie would otherwise have shared by remaining LP or funding redemption after close.
Broken economic invariant (candidate): an LP should not be able to realize a larger, irreversibly funded withdrawal simply by placing that funding between its own positive VPI payment and the corresponding close rebate, when the same final trading exposure and market prices are used in the control. This is a guard-to-settlement / cohort-exit accounting differential, not merely an intermediate NAV fluctuation.
Permissionless sequence reproduced locally
- Initial LPs: Charlie deposits 6,000,000 USDG into Junior, and Bob independently deposits 4,000,000 USDG. The two requests are activated through the normal LP epoch. Charlie is already a Junior LP before opening his trade. The fixture applies the documented launch Senior caps (40M USDG and 80%) in
setUp(); that owner-level setup is not an attacker action. - Independent skew: Alice has 100,000 USDG of trader collateral and opens a 3,000,000 USDG LONG through the public Router. She remains passive and her position remains open throughout Charlie's attack. Charlie also begins with 100,000 USDG trader collateral.
- Pre-queue withdrawal: After the normal cooldown, Charlie calls
TrancheVault.requestRedeem()for all his Junior shares. The shares are escrowed but remain included intotalSupply()until funded. - VPI-positive open: Charlie opens a 1,000,000 USDG LONG, increasing market skew. A permissionless keeper executes the order. Positive VPI is collected, increasing pool cash and the value used for the Junior redemption quote. The oracle mark remains $1.00.
- Irreversible redemption before close: Once the epoch is mature, the public
OrderRouter.settleLpEpoch()funds available Charlie shares at this pre-close price.TrancheVault.fundRedeemEpoch()burns the funded shares and fixes their USDG claim. In the attack witness Charlie claims promptly; in an additional witness he deliberately waits to claim until after his close. Both outcomes are economically identical. - Rebate-producing close: Charlie closes the complete LONG through the public Router, using valid oracle updates at the same mark. The protocol pays the allowable negative close VPI to Charlie's trader account from the pool. Bob stays invested.
- Remainder and final wealth: Charlie settles and claims any residual redemption after close. The strengthened test now asserts unconditionally that attack, close-first and claim-after-close scenarios finish with zero residual shares/refundable shares, zero remaining claimable USDG and all requested shares funded/burned. Each claim is reconciled against observed Charlie ERC20 balance increases. Wealth is computed from wallet cash, Clearinghouse balance, residual shares and still-claimable assets without double-counting.
The Pyth test doubles are used only for oracle updates; no fabricated signed oracle tick or privileged price-signer capability is assumed. Alice does not cooperate after opening her LONG. The attack requires existing LP liquidity, sufficient withdrawal capacity for some pre-close funding, the tested market skew and sufficient trader capital. The PoC's time warps simulate legitimate cooldown/epoch passage, not an ability to bypass timestamps on chain.
Matched controls isolate the timing effect
The supplied Foundry test restores the same fixture for four matched sequences at both 0 and 10 bps confidence, implemented inside two test_... methods:
ExitAfterOpenBeforeClose(attack): first redemption funding/share burn and claim occur before Charlie closes, with the residual redemption funded after close.CloseBeforeExitFunding(timing control): the same trade is closed first, and only then are the redemption shares funded.FundBeforeCloseClaimAfterClose(new no-claim control): first funding/burn occurs before close, but the fixed USDG claim is deliberately left unclaimed until after close. Its terminal Charlie wealth and Bob's remaining LP value match the attack exactly at each confidence level; the initial claim remains fixed across close.RemainLpThroughClose(exposure control): Charlie stays invested through close, with residual share value counted exactly once. Its previously recorded outcome agrees with close-first within $0.000002.
The updated test unconditionally asserts full funding/burning of requested shares, no residual/refundable shares, zero unpaid USDG claims, actual ERC20 payout reconciliation, and correct funding/close timestamp ordering. It captures per-event HousePool assets, Junior NAV/supply/share conversion, share burns, escrow claims, Charlie cash received, Bob share value, free assets and liability. Close timestamp and Pyth inputs are matched between controls: price 100000000 at exponent -8 ($1), publish/close time 1709802002, and the respective confidence 0 or 100000.
The new checkpoint reports 2 passed, 0 failed, 0 skipped with Foundry 1.5.1-stable and Solc 0.8.35. These are the two top-level tests; each exercises the four scenarios. The execution is local with the repository's Pyth/USDG doubles. This report was revised from the supplied checkpoint and PoC; no independent Foundry rerun is claimed.
Prior-audit kill pass and the distinct mechanism demonstrated here
The prior-audit review was conducted separately from the PoC. The most relevant overlapping public scan lead is “Temporary pool-liquidity reduction can amplify a skew-reducing close rebate” (audits/scan-plether-fi-plether-core-d4541b49.md, lines 1742–1808). The analysis below compares this specific proposed mechanism with the reproduced behavior; it does not claim that the scan lead has been officially confirmed as an Immunefi known issue.
That scan lead's alleged mechanism: reducing HousePool liquidity before a skew-reducing close can increase the magnitude of the negative close VPI rebate through the pool-depth calculation. Its relevant consequence is an extra rebate paid to the trader.
HYP-25's mechanism: an existing Junior LP has its redemption funded and shares burned when positive VPI already received by the pool is reflected in the share valuation. That same trader subsequently closes, recovering its allowed VPI rebate after the funded shares have exited. The surviving LP cohort absorbs that reduction. The affected invariant is economic cohort allocation at irreversible redemption funding, not merely the size of the close rebate. A pre-close liquidity reduction also occurs in our test, so overlapping steps are acknowledged rather than hidden.
The hardened PoC measures both mechanisms independently:
Oracle confidence: 0 bps
- Actual close rebate: funding-first: $3,497.726792
- Actual close rebate: close-first: $3,496.503861
- Additional close rebate: $1.222931
- Charlie's full timing uplift: $1,853.953547
Oracle confidence: 10 bps
- Actual close rebate: funding-first: $3,496.328471
- Actual close rebate: close-first: $3,496.328471
- Additional close rebate: $0.000000
- Charlie's full timing uplift: $1,733.062817
At 10 bps, the gross VPI and actual credited close rebate are exactly equal in the attack and close-first control, yet 1,733.062817 USDG moves from the surviving Junior cohort to Charlie under the paired terminal-wealth measurement. Thus the scan lead's extra-rebate mechanism cannot explain the measured extraction in that witness. At 0 bps, the $1.222931 rebate difference is only about 0.066% of the $1,853.953547 timing uplift; the bulk remains a funding/cohort-allocation difference.
The additional FundBeforeCloseClaimAfterClose witness funds and burns the same shares before close but deliberately defers the ERC20 claim until after close. Its final Charlie wealth and remaining-LP value are identical to the immediate-claim attack at both oracle confidence settings; the funded USDG entitlement remains fixed across the close. Share funding/burning, not claim timing, is the relevant settlement boundary.
Impact Details
Proposed in-scope impact: Critical — Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield, if the platform accepts the demonstrated change in remaining Junior LP wealth as an improper transfer of principal/economic ownership. The PoC establishes a local counterfactual loss in the remaining LP cohort and an equal attacker uplift, not an arbitrary debit from Bob's wallet. Final validity and severity remain subject to triage.
Measured outcomes (USDG-dollar equivalents)
Pyth confidence: 0 bps
- Charlie absolute wealth delta — attack: +$3,991.567380
- Charlie absolute wealth delta — close-first: +$2,137.613833
- Attacker uplift caused by timing: +$1,853.953547
- Remaining LP cohort's decrease vs control: −$1,853.953547
- Actually paid across attack redemptions: $6,004,793.898797
Pyth confidence: 10 bps
- Charlie absolute wealth delta — attack: +$4,070.074766
- Charlie absolute wealth delta — close-first: +$2,337.011949
- Attacker uplift caused by timing: +$1,733.062817
- Remaining LP cohort's decrease vs control: −$1,733.062817
- Actually paid across attack redemptions: $6,005,272.405189
Do not confuse these amounts: the absolute wealth increases include normal trading economics and other transfers that also exist in the controls. The claimed extraction is the incremental terminal wealth transferred by settling the LP redemption before the close rather than afterward, with a corresponding difference in the remaining LP cohort's final share value. The gross ~$6 million redemption payout includes return of Charlie's own principal and is not the amount stolen.
The hardened test now requires zero residual Charlie position, zero pending/refundable redemption shares and zero claimable USDG for attack, close-first and no-claim scenarios. The first and second funded shares must total the requested shares; each funding must match the share-supply burn, and the paid claims must match Charlie’s observed ERC20 balance change. Alice’s independent LONG remains unchanged. The starting market and LP balances are held constant across the paired cases; the result does not require favorable oracle movement. The no-claim scenario confirms that funding/burn rather than claim timing fixes the economic outcome.
Funding and cash settlement proof
The first funding is partial because the pool preserves liquidity against open trader liability; the rest is funded after Charlie closes. Importantly, these are actual paid USDG amounts, not only redemption previews:
Confidence: 0 bps
- First funded payout (attack): $5,999,996.826971
- Second payout after close: $4,797.071826
- Total paid (attack): $6,004,793.898797
- Total paid (close-first control): $6,002,941.167295
Confidence: 10 bps
- First funded payout (attack): $6,000,795.629190
- Second payout after close: $4,476.775999
- Total paid (attack): $6,005,272.405189
- Total paid (close-first control): $6,003,539.341486
The FundBeforeCloseClaimAfterClose witness receives the same totals as the attack, but intentionally defers claiming the first USDG escrow entitlement until after close. The test asserts the funded claim's amount did not change across close. Therefore the irreversible redemption funding/share burn is the relevant boundary. The difference in these total payouts should not be confused with gross wealth or standalone profit because the final comparison also accounts for Charlie's trading cash flows and any residual claims.
Cost model and economic limits
The preserved attack-path measurements are 5,471,497 / 5,512,417 EVM execution gas across nine transaction-shaped actions at 0 / 10 bps, including permissionless keeper executions charged to Charlie. The illustrative Arbitrum fee model assumes four 2 KB Pyth updates, 21,000 intrinsic gas per transaction, a 50% L2 execution margin, and a 10%-padded 23,115-gas L1-data allowance based on an earlier NodeInterface sample, not on deployed Plether transactions. This yields approximately 8,516,173 / 8,577,553 modeled gas.
Pyth confidence: 0 bps
- Timing uplift before network cost: $1,853.953547
- Modeled network cost: $0.357679
- Timing uplift after modeled gas: +$1,853.595868
Pyth confidence: 10 bps
- Timing uplift before network cost: $1,733.062817
- Modeled network cost: $0.360257
- Timing uplift after modeled gas: +$1,732.702560
The assumptions use 0.021 gwei as the rounded Arbitrum gas price and $2,000 per ETH. At 10 bps, the approximate break-even gas price under the modeled gas units is 101 gwei. Arbitrum incorporates both L2 execution and L1 data posting into a single network fee. Pyth Core currently documents a zero on-chain EVM update fee; any external price-data acquisition or production-specific integration costs are not measured. These figures are models, not actual deployed-instance transaction receipts. The model also excludes the funding or opportunity cost of Charlie's 6 million USDG LP principal, and does not prove that comparable withdrawal capacity and skew are always available.
Constraints and demonstrated scope
- Code/roles: all vulnerable paths identified in the report are in
packages/perps/src; the PoC makes legitimate owner-level configuration changes only in fixture setup to match the documented launch caps, not as an attacker step. Charlie's sequence uses LP and trader functions available to ordinary accounts and public keeper paths. - Market: flat $1.00 mock Pyth prices at 0 and 10 bps confidence; no oracle signer compromise, no deliberately stale public tick, and no Bob/Alice collusion after independent setup.
- Liquidity: first funding is partial; the remaining shares are funded after close. The test strictly asserts zero residual shares/claim, matching share burns, and actual paid ERC20 cash. The no-claim witness proves that claims may occur after close without eliminating the timing differential.
- Deployment: this is a local source-contest reproduction. No live Arbitrum One exploitation, prevalence estimate or fixed release is asserted. The same-period buy/sell execution rules and available pool budget must hold in any real deployment.
References
Assessed competition source: a82d4fefb02768e5b3bddcc97dee371eee24fea8; the target file most directly responsible for the irreversible redemption funding is HousePool.sol.
-
CfdEngineSettlementSidecar: positive-open VPI cash collection
-
TrancheVault: redeem request escrows shares without burning them
-
HousePool: reconcile, redemption snapshots and Junior funding capacity
-
TrancheVault: funded assets enter escrow and funded shares burn
-
CfdEngineSettlementSidecar: close rebate paid from pool to trader
-
CfdEngineSettlementSidecar: lifetime VPI accrual updated on close
-
Official Plether audit-competition scope and PoC requirements
-
Public Plether pre-contest AI scan (depth/rebate known-issue comparison)
Local PoC: Hyp25PositiveVpiJuniorExit.t.sol, reproduced in the full report under ## Proof of Concept. Save it in the locked checkout as packages/perps/test/perps/accounting/close/Hyp25PositiveVpiJuniorExit.t.sol. It is the four-scenario version supplied on 14 November 2026; production source files remain unchanged.
Proof of Concept
Proof of Concept
File: packages/perps/test/perps/accounting/close/Hyp25PositiveVpiJuniorExit.t.sol
Locked commit: a82d4fefb02768e5b3bddcc97dee371eee24fea8
Foundry: 1.5.1-stable; Solc: 0.8.35.
From the repository root:
forge test --root packages/perps --match-path test/perps/accounting/close/Hyp25PositiveVpiJuniorExit.t.sol -vv
The supplied local checkpoint reports 2 passed, 0 failed, 0 skipped. Each test includes four snapshot-matched scenarios. The complete code below reproduces the supplied test with only cosmetic HYP-25 label normalization (one comment, two test method names, and two log messages). No execution logic, assertions, scenarios, or parameters were changed. The original source had a reported 2/2 passing local run; the cosmetically relabeled version has not been rerun in this session. Only the repository's pre-existing USDG/Pyth test doubles are used; production contracts are unchanged. The runtime results quoted in the description are based on the researcher's local run, not an independent rerun in this session.
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.35;
import {BasePerpTest} from "../../BasePerpTest.sol";
import {CfdTypes} from "@plether/perps/CfdTypes.sol";
import {OrderV3Types} from "@plether/perps/OrderV3Types.sol";
import {HousePoolEngineViewTypes} from "@plether/perps/interfaces/HousePoolEngineViewTypes.sol";
import {IHousePool} from "@plether/perps/interfaces/IHousePool.sol";
import {IOrderLifecycleBook} from "@plether/perps/interfaces/IOrderLifecycleBook.sol";
import {Vm} from "forge-std/Vm.sol";
/// @notice Local production-route test for HYP-25 and matched timing/exposure witnesses.
/// @dev Only the repository's USDG and Pyth test doubles are used; in-scope contracts remain real.
contract Hyp25PositiveVpiJuniorExitTest is BasePerpTest {
address internal constant BOB = address(0xB0B);
address internal constant CHARLIE = address(0xC4A2);
address internal constant ALICE = address(0xA11CE);
address internal constant KEEPER = address(0x4B33);
uint256 internal constant CHARLIE_LP_CAPITAL = 6_000_000e6;
uint256 internal constant BOB_LP_CAPITAL = 4_000_000e6;
uint256 internal constant TRADER_CAPITAL = 100_000e6;
uint256 internal constant ALICE_LONG = 3_000_000e18;
uint256 internal constant CHARLIE_LONG = 1_000_000e18;
uint256 internal constant RECONCILIATION_TOLERANCE = 100_000; // $0.10 USDG
enum Sequence {
ExitAfterOpenBeforeClose,
CloseBeforeExitFunding,
RemainLpThroughClose,
FundBeforeCloseClaimAfterClose
}
struct EconomicSnapshot {
uint256 poolAssets;
uint256 juniorNav;
uint256 juniorSupply;
uint256 juniorAssetsPerShare;
uint256 sharesBurnedAtEvent;
uint256 sharesBurnedCumulative;
uint256 charlieUsdGReceived;
uint256 claimableUsdG;
uint256 pendingRedeemShares;
uint256 claimableRedeemShares;
uint256 bobShareValue;
uint256 freeAssets;
uint256 maxLiability;
uint64 timestamp;
uint64 oraclePublishTime;
uint64 oracleConfidence;
int64 oraclePriceRaw;
int32 oracleExponent;
}
struct Metrics {
EconomicSnapshot afterOpenVpi;
EconomicSnapshot afterFirstFunding;
EconomicSnapshot afterFirstClaim;
EconomicSnapshot beforeCloseVpi;
EconomicSnapshot afterCloseVpi;
EconomicSnapshot afterSecondFunding;
EconomicSnapshot afterSecondClaim;
uint256 poolBeforeCharlieOpen;
uint256 poolAfterCharlieOpen;
uint256 poolBeforeCharlieClose;
uint256 poolAfterCharlieClose;
uint256 juniorNavAfterCharlieOpen;
uint256 freeAssetsAfterCharlieOpen;
uint256 maxJuniorWithdrawAfterCharlieOpen;
uint256 maxLiabilityAfterCharlieOpen;
uint256 settlementBufferAfterCharlieOpen;
int256 terminalNavPnlAfterCharlieOpen;
int256 nonVpiNavAdjustmentAfterCharlieOpen;
uint256 juniorNavBeforeRequest;
uint256 juniorNavAfterRequest;
uint256 juniorSupplyBeforeRequest;
uint256 juniorSupplyAfterRequest;
uint256 charlieSharesRequested;
uint256 charlieSharesEscrowed;
uint256 redeemEpoch;
uint256 redeemActivation;
uint256 redemption1FundedShares;
uint256 redemption1Paid;
uint256 redemption1ClaimableAtFunding;
uint256 redemption2FundedShares;
uint256 redemption2Paid;
uint256 redemption2ClaimableAtFunding;
uint256 redemptionResidualShares;
uint256 redemptionResidualClaimAssets;
uint256 charlieWalletBalanceBeforeRedemption;
uint256 charlieWalletBalanceDeltaObserved;
uint256 charlieStartWealth;
uint256 charlieEndWealth;
uint256 charlieRemainingShareValue;
uint256 bobEndWealth;
uint256 oldLpShares;
uint256 oldLpAssetsFinal;
uint256 juniorAssetsFinal;
uint256 charlieOpenFee;
uint256 charlieCloseFee;
uint256 charlieOpenBounty;
uint256 charlieCloseBounty;
uint256 charlieOpenActionChargeCollected;
uint256 charlieCloseActionChargeCollected;
uint256 charlieCloseRebatePaid;
uint256 closeOraclePriceRaw;
uint256 closeOracleConfidence;
uint256 closeOraclePublishTime;
int32 closeOracleExponent;
uint256 setupGas;
uint256 redeemRequestGas;
uint256
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 pool recognises a trader's positive opening price-impact payment in the Junior share valuation and irreversibly funds and burns redemption shares before the same trade's offsetting close rebate is settled, so exiting shares escape the later reduction.
Impact
The remaining Junior LP cohort loses value equal to the exiting trader's timing uplift, about $1,733 to $1,854 in local tests, though the report notes this is a local reproduction and validity is subject to triage.
What the attacker needed
Existing Junior LP shares; sufficient pool withdrawal capacity; trader collateral for the long; normal cooldown and epoch passage
The fix
Redemption funding should not price in a trader's positive price impact until the matching close rebate is settled, or funded shares should remain exposed to that settlement.
How it was found
- Deposit into the Junior tranche and wait for the normal cooldown and epoch to mature.
- Request redemption of all Junior shares, which escrows them without burning.
- Open a large long that increases skew and pays positive price impact into the pool.
- Have the public keeper settle the LP epoch so the redemption is funded and shares burned at the inflated price.
- Close the long so the protocol pays the negative close rebate to the trader.
- Claim any residual redemption after the close.
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.
Liquidity providers put money into a shared pool and get shares whose value moves with the pool. This report shows that if a provider asks to cash out at the right moment, just after their own trade temporarily makes the pool look richer but before that trade is closed and the money paid back, they can withdraw at the higher value. The loss then falls on the providers who stayed in.
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.