Reproduced Exploit

An STBL withdrawal splits the pool NFT and orphans 500 of LP yield

iWithdraw updates the LP against the stale rewardIndex and then spliter.split burns the pool NFT. It never calls iClaimYield. The 500 YLD that had accrued on the old id is snapshotted by disableYield and can never be claimed. The LP's harvest pays 0. Claiming before the split pays the LP the full 5…

Jun 2026•Ethereum•dos•3 min read

Loss

500 YLD orphaned on a burned pool NFT. The withdrawing LP harvests 0

Chain

Ethereum

Category

dos

Date

Jun 2026

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 66733-lp-yield-permanently-orphaned-in-stbl-redemption-coreiwithdr. Standalone Foundry PoC and full write-up: 66733-lp-yield-permanently-orphaned-in-stbl-redemption-coreiwithdr_exp in the evm-hack-registry mirror.


Vulnerability classes: vuln/dos/frozen-funds · vuln/logic/missing-check

Key info#

FieldValue
Loss500 YLD orphaned on a burned pool NFT. The withdrawing LP harvests 0
Vulnerable contractSTBL_Redemption_Core.iWithdraw
Attacker EOA0x0000000000000000000000000000000000066733 (any LP)
Attack contractExploit
Attack txExploit.run()
Chain / block / dateEthereum model · block 0 · 2026-06
Compilersolc 0.8.27, cancun, via IR
Bug classWithdraw splits the pool NFT before iClaimYield

TL;DR#

iWithdraw updates the LP against the stale rewardIndex and then spliter.split burns the pool NFT. It never calls iClaimYield. The 500 YLD that had accrued on the old id is snapshotted by disableYield and can never be claimed. The LP's harvest pays 0. Claiming before the split pays the LP the full 500.

Background#

Cyfrin's June 2026 STBL Ess review, the withdraw and redeem twin of the deposit bug. The pool still holds one YLD NFT. split burns it and mints a pool fragment plus the withdrawer's fragment. Only iClaimYield moves distributor yield into rewardIndex. Neither iWithdraw nor iRedeem calls it.

The vulnerable code#

SOLIDITY
function iWithdraw(uint256 _amt) internal {
    _updateRewards(msg.sender);
    // @> VULN: iWithdraw splits the pool NFT before iClaimYield, so pending yield is snapshotted onto a burned id
    (uint256 tokenIdA,) = spliter.split(NFTID, _amt);
    NFTID = tokenIdA;
    userData[msg.sender].stableValueNet -= _amt;
    totalSupply -= _amt;
}

split calls disableYield(oldId) before the new ids are enabled. claim(oldId) then reverts. The new pool NFT has no pending yield, so a later iClaimYield returns 0 for the period before the split.

Root cause#

Yield is keyed by NFT id. Burning that id without first calling claim leaves the tokens in the distributor under an id the pool no longer owns.

Preconditions#

  • An LP holds 10,000 shares on NFT id 1.
  • 500 YLD has accrued since the last claim.
  • withdraw is permissionless. No admin action is required.

Attack walkthrough#

  1. The distributor mints 500 YLD of pending yield for NFT 1.
  2. The LP withdraws 1,000 shares.
  3. iWithdraw splits the NFT. The old id is burned.
  4. disableYield stores the 500 YLD on that dead id.
  5. The LP harvests 0. The new NFT's iClaimYield also returns 0.
  6. The control claims first. The same LP receives 500 YLD.

Diagrams#

flowchart TD A["Pool NFT 1 has 500 YLD pending"] --> B["The LP calls withdraw for 1,000 shares"] B --> C["VULN: iWithdraw splits and burns NFT 1 before iClaimYield"] C --> D["disableYield stores the 500 YLD on the burned id"] D --> E["The LP harvests 0 and the tokens stay in the distributor"] B --> F["Control calls iClaimYield before the split"] F --> G["Control pays the LP the full 500 YLD"]

Impact#

The distributor still holds 500 YLD after the withdrawal. The LP who accrued it is paid 0, and no later claim on the replacement NFT recovers it. The control path pays that LP the full 500 YLD and leaves the distributor empty.

Remediation#

Call iClaimYield at the top of iWithdraw and iRedeem, before spliter.split.

How to reproduce#

BASH
cd 66733-lp-yield-permanently-orphaned-in-stbl-redemption-coreiwithdr_exp
forge test -vv

test_exploit_withdraw_orphans_lp_yield asserts the 500 YLD is stranded and the harvest is 0. test_control_claim_before_withdraw_pays_lp asserts the claim-first path pays 500 YLD. Captured output is output.txt.

Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • Web3Sec X hacked database: search.
  • Rekt leaderboard: search.
  • Solodit incident search: search.

These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.