Reproduced Exploit
EigenLayer — Beacon chain withdrawals at lastWithdrawalTimestamp are lost
1. activateRestaking sets mostRecentWithdrawalTimestamp = block.timestamp and sweeps pod ETH. 2. Beacon-chain withdrawals for that timestamp execute after user txs (EIP-4895). 3. verifyAndProcessWithdrawals requires timestamp > mostRecentWithdrawalTimestamp. 4. A proof for the same timestamp is rej…
Chain
Other
Category
untagged
Date
Mar 2024
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: 40684-beacon-chain-withdrawals-that-occur-at-lastwithdrawaltimesta. Standalone Foundry PoC and full write-up: 40684-beacon-chain-withdrawals-that-occur-at-lastwithdrawaltimesta_exp in the
evm-hack-registrymirror.
Vulnerability classes: frozen-funds · locked-funds · timestamp-dependence
Reproduction: self-contained Foundry PoC with only
forge-std— no fork. output.txt · test/40684-…sol.
AuditVault taxonomy: lang/solidity · platform/cantina · severity/high · sector/restaking · sector/staking · genome: frozen-funds · locked-funds · timestamp-dependence
Key info#
| Impact | HIGH — 32 ETH beacon withdrawal permanently stuck when restaking is activated in the same block |
| Protocol | EigenLayer — EigenPod.proofIsForValidTimestamp / activateRestaking |
| Vulnerable code | timestamp > mostRecentWithdrawalTimestamp (should be >=) |
| Bug class | Off-by-one timestamp guard / EIP-4895 ordering |
| Finding | Cantina — EigenLayer, Mar 2024 · #40684 · reporter hash |
| Report | cantina_competition_eigenlayer_mar2024.pdf |
| Source | AuditVault |
| Fix | Use >= mostRecentWithdrawalTimestamp |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
activateRestakingsetsmostRecentWithdrawalTimestamp = block.timestampand sweeps pod ETH.- Beacon-chain withdrawals for that timestamp execute after user txs (EIP-4895).
verifyAndProcessWithdrawalsrequirestimestamp > mostRecentWithdrawalTimestamp.- A proof for the same timestamp is rejected — the ETH can never be claimed.
Diagrams#
Impact#
Beacon withdrawals that share a block/timestamp with activateRestaking (or any _processWithdrawalBeforeRestaking) are unrecoverable under the strict > guard.
Sources#
- AuditVault #40684
- Cantina EigenLayer Mar 2024
- Reduced from
EigenPod.sol(proofIsForValidTimestamp,_processWithdrawalBeforeRestaking) as quoted in the finding; fixed form appears in Layr-Labs/eigenlayer-contracts@v0.2.3-mainnet-m2 with>=
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 40684-beacon-chain-withdrawals-that-occur-at-lastwithdrawaltimesta_exp (evm-hack-registry mirror).
- AuditVault finding: 40684-beacon-chain-withdrawals-that-occur-at-lastwithdrawaltimesta.
Alerts & third-party analyses
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.