Reproduced Exploit

Kinetiq pays a queued withdrawal the pre-slash HYPE amount and leaves the later stake at 0

queueWithdrawal stores hypeAmount = kHYPEToHYPE(postFeeKHYPE) on the request. confirmWithdrawal loads that stored number and transfers it. The quote is not redone.

Apr 2025•Ethereum•logic•3 min read

Loss

75 HYPE is paid to the withdrawal queued before the slash. The later 20 kHYPE is quoted at 214285714285714285…

Chain

Ethereum

Category

logic

Date

Apr 2025

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

The attack replays in your browser. Step through it by Solidity line or by opcode.

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. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 58554-h-02-users-who-queue-withdrawal-before-a-slashing-event-disa. Standalone Foundry PoC and full write-up: 58554-h-02-users-who-queue-withdrawal-before-a-slashing-event-disa_exp in the evm-hack-registry mirror.


Vulnerability classes: vuln/logic/stale-state · vuln/defi/withdrawal

Key info#

FieldValue
Loss75 HYPE is paid to the withdrawal queued before the slash. The later 20 kHYPE is quoted at 21428571428571428571 wei and receives 0. The post-slash reserve was 75 HYPE for 70 kHYPE
Vulnerable contractStakingManager.confirmWithdrawal
Attacker EOA0x1111111111111111111111111111111111111111
Attack contractExploit at 0x15452ec016c4dc8c549e7fe6ff4b26324ea8b7a4
Attack txExploit.run()
Chain / block / dateEthereum model · block 0 · 2025-04
Compilersolc 0.8.27, cancun, via IR
Bug classconfirmWithdrawal pays hypeAmount stored by queueWithdrawal
flowchart TD A["50 kHYPE is queued while 70 kHYPE maps to 105 HYPE"] --> B["queueWithdrawal stores hypeAmount of 75 HYPE"] B --> C["Slash burns 30 HYPE and the reserve is 75"] C --> D["Later 20 kHYPE is quoted at about 21.43 HYPE"] D --> E["VULN confirm pays the stored 75 and the reserve is 0"] C --> F["Control quotes again inside confirmWithdrawal"] F --> G["Early receives 53.57 HYPE and late receives 21.43 HYPE"]

TL;DR#

queueWithdrawal stores hypeAmount = kHYPEToHYPE(postFeeKHYPE) on the request. confirmWithdrawal loads that stored number and transfers it. The quote is not redone.

At 105 HYPE for 70 kHYPE, 50 kHYPE snapshots to 75 HYPE. A slash burns 30 HYPE, so 75 HYPE remains for 70 kHYPE. The early confirm still pays 75. The later 20 kHYPE was quoted, after the slash, at 21428571428571428571 wei. Its confirm reverts because the contract balance is 0.

HYPE is an 18-decimal token standing in for native HYPE. The stored amount, the balance check, and the transfer are the quoted confirm path.

The fixed confirm ignores the stored hypeAmount and calls kHYPEToHYPE again. The early user receives 53571428571428571428 wei and the later user receives 21428571428571428572 wei. Those sum to the 75 HYPE left after the slash.

The vulnerable code#

SOLIDITY
uint256 hypeAmount = kHYPEToHYPE(postFeeKHYPE);
kHYPE.transferFrom(msg.sender, address(this), kHYPEAmount);
_withdrawalRequests[msg.sender][withdrawalId] = WithdrawalRequest({
    hypeAmount: hypeAmount,
    kHYPEAmount: postFeeKHYPE,
    kHYPEFee: kHYPEFee,
    timestamp: block.timestamp
});
SOLIDITY
uint256 amount = _processConfirmation(msg.sender, withdrawalId);
require(hype.balanceOf(address(this)) >= amount, "Insufficient contract balance");
totalHYPE -= amount; // @> VULN: subtracts the pre-slash hypeAmount stored at queue time
hype.transfer(msg.sender, amount);

Impact#

The early withdrawer takes the entire post-slash reserve, 75 HYPE. The 20 kHYPE queued afterward cannot be paid. Under the recomputed rate that 20 kHYPE is worth 21428571428571428571 wei, and it receives none of it.


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.