Reproduced Exploit
Elytra: A user's elyAsset is burned on requestWithdrawal
Chain
Other
Category
untagged
Date
Jan 1970
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
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.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 63542-c-02-withdrawal-requests-through-deposit-pool-lost-permanent. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC.
Vulnerability classes: vuln/locked-funds
Reproduction: a faithful minimal reproduction of the vulnerable finding — the vulnerable function is reproduced verbatim (marked
@>) with faithful minimal doubles; local deploy, no fork.
Root cause#
A user's elyAsset is burned on requestWithdrawal, but the vault records the deposit pool (msg.sender) as the request owner, so the user's completeWithdrawal() reverts forever and 6e18 underlying HYPE is permanently locked in the vault.
// ─── VERBATIM vulnerable assignment from the finding ───
withdrawalRequests[requestId] = WithdrawalRequest({
user: msg.sender, // @> records the CALLER (deposit pool), not the real user -> user can never complete
asset: asset,
elyAssetAmount: elyAssetAmount,
Why it's exploitable here#
A user's elyAsset is burned on requestWithdrawal, but the vault records the deposit pool (msg.sender) as the request owner, so the user's completeWithdrawal() reverts forever and 6e18 underlying HYPE is permanently locked in the vault.
Attack path#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0xbd4fd5a3ce…:
- L152 — Deposit pool requests withdrawal: Entry: the deposit pool calls
requestWithdrawalon the user's behalf, forwarding the elyAsset amount to burn. - L157 — Compute underlying owed: Setup:
assetAmountrecords the underlying HYPE the burned elyAsset entitles the withdrawer to. - L163 — Records msg.sender as owner: Root cause: stores
user: msg.sender— the deposit pool, not the real user — as the request owner, orphaning the withdrawal. - L167 — Stamp request time: Setup: records
block.timestampon the withdrawal request struct. - L173 — User calls completeWithdrawal: The real user later calls
completeWithdrawalto redeem the underlying for their already-burned shares. - L175 — Owner check reverts for user:
require(msg.sender == request.user)fails: the stored owner is the pool, so the user can never complete and the HYPE locks. - L187 — Deposit pool contract: Setup:
ElytraDepositPoolV1is the intermediary whose address wrongly became the request owner.
PoC#
Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):
cd 63542-c-02-withdrawal-requests-through-deposit-pool-lost-permanent_exp
forge test -vvv
The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: A user's elyAsset is burned on requestWithdrawal, but the vault records the deposit pool (msg.sender) as the request owner, so the user's co. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).
Sources & further analysis#
Reproductions & code
- No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
- AuditVault finding: 63542-c-02-withdrawal-requests-through-deposit-pool-lost-permanent.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: search "Elytra: A user's elyAsset is burned on requestWithdrawal".
- 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.