Reproduced Exploit
Kinetiq — Some stakers may fail to withdraw staking HYPE
1. Stake path fills hypeBuffer up to targetBuffer before delegating. 2. queueWithdrawal never spends the buffer; it always undelegates from currentDelegation. 3. After a delegation switch to a validator with 0 stake, even a buffer-covered withdrawal reverts. 4. Control path that drains buffer first…
Chain
Other
Category
untagged
Date
Feb 2025
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: 58614-h-06-some-stakers-may-fail-to-withdraw-staking-hype-pashov-a. Standalone Foundry PoC and full write-up: 58614-h-06-some-stakers-may-fail-to-withdraw-staking-hype-pashov-a_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/reward-accounting · dos/lockup · loss-of-funds/locked-funds
Reproduction: a self-contained Foundry PoC that compiles & runs in an isolated project with only
forge-std— no fork, no RPC, noanvil_state. Full trace: output.txt. PoC: test/58614-h-06-some-stakers-may-fail-to-withdraw-staking-hype-pashov-a_exp.sol.
AuditVault taxonomy: severity/high · sector/staking · sector/liquid-staking · reward-accounting · dos-resistance · dos/lockup · loss-of-funds/locked-funds · known-pattern
Key info#
| Impact | HIGH — withdrawals ignore hypeBuffer and force validator undelegation; can revert when current validator has insufficient stake |
| Protocol | Kinetiq — StakingManager buffer |
| Vulnerable code | queueWithdrawal → always _withdrawFromValidator |
| Bug class | Buffer not used on exit (Lido-style buffer inverted) |
| Finding | Pashov Audit Group · Kinetiq 2025-02-26 · #58614 · H-06 |
| Report | Kinetiq-security-review_2025-02-26 |
| Source | AuditVault |
| Status | Audit finding. Reproduced as a standalone local PoC. |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
- Stake path fills
hypeBufferup totargetBufferbefore delegating. queueWithdrawalnever spends the buffer; it always undelegates fromcurrentDelegation.- After a delegation switch to a validator with 0 stake, even a buffer-covered withdrawal reverts.
- Control path that drains buffer first succeeds for the same request.
- Fix: service from buffer first; only undelegate the shortfall.
The vulnerable code#
_withdrawFromValidator(currentDelegation, amount); // @> VULN
// FIX: use hypeBuffer first, then undelegate remainder
Root cause#
The buffer exists only on the deposit path. Exit logic treats every withdrawal as a validator exit, defeating the reserve and coupling user exits to the current validator's L1 balance (which may be empty after rebalance).
Preconditions#
- Non-zero
targetBufferwith buffer actually filled. currentDelegationhas less stake than the withdrawal (e.g. aftersetDelegationto a fresh validator).
Attack walkthrough#
- Stake 100 HYPE with
targetBuffer = 50→ 50 buffer, 50 on VAL_A. - Operator sets current delegation to VAL_B (0 stake).
- User queues 40 HYPE — buffer has 50, but code undelegates 40 from VAL_B → revert.
- Fixed path consumes 40 from buffer and succeeds.
Diagrams#
Impact#
Stakers can be unable to queue withdrawals despite idle buffer liquidity. Combined with rebalancing (L-08-adjacent), this becomes a selective / systemic exit DoS and forces unnecessary validator exits when the buffer could have paid.
Sources#
- AuditVault finding #58614
- Pashov Kinetiq review 2025-02-26
- Reduced source: kinetiq-research/lst @ c83aa17 —
StakingManager.queueWithdrawal
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 58614-h-06-some-stakers-may-fail-to-withdraw-staking-hype-pashov-a_exp (evm-hack-registry mirror).
- AuditVault finding: 58614-h-06-some-stakers-may-fail-to-withdraw-staking-hype-pashov-a.
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.