Crypto exploits

Ekubo exploit analysis

A contract sitting at the address of Ekubo's own Ethereum router called the Core contract's lock function 85 times, withdrawing 0.2 WBTC to the attacker on each pass and settling the resulting debt out of a separate wallet's standing WBTC approval instead of its own funds. The drain moved 17 WBTC, reported by DeFiHackLabs at roughly $1.4 million and priced by Etherscan's own record of the transaction at $1,311,601.

David

Security ·

Reported loss
$1.4M
Occurred
Logged

Logged as “2026-05-05: Business Logic Flaw on Ekubo”.

Analysis3 min read

Ekubo's reputation runs through Starknet, where its Cairo contracts run concentrated-liquidity swaps through a single shared pool engine. The contract that lost money on 5 May 2026 is a different codebase: Ekubo's own evm-contracts repository, deployed separately to Ethereum mainnet around a Uniswap V4-style singleton called Core. A wallet Etherscan tags Ekubo Exploiter 1 pulled 17 WBTC out of the protocol in a single transaction, and none of it came from a flash loan or a mispriced pool. It came out of another wallet's own WBTC balance.

Eighty-five locks and someone else's approval

Core's flash-accounting model lets any address call lock(), which calls back into the locker and lets it run up debt against Core before the lock returns; if any token's debt is still non-zero when that callback finishes, the whole call reverts. Inside that window a locker can call withdraw() to pull tokens out immediately, provided it settles the debt before returning. Settling a debt from someone other than the locker itself runs through a library function in the same codebase, FlashAccountantLib.payFrom, which takes an arbitrary from address and calls token.transferFrom(from, accountant, amount). Nothing in that function, or in Core's lock, withdraw and forward, checks that the caller is from or that from agreed to this particular call. Authorization is left entirely to whichever contract is acting as the locker, and the only real restriction left standing is whatever ERC-20 approval already sits on chain.

The proof-of-concept's reconstruction, run against the real forked Core contract, has a contract sitting at the Ekubo Router's own address, 0x8CCB1ffD5C2aa6Bd926473425Dea4c8c15DE60fd, do exactly that. It calls CORE.lock() 85 times. On each pass it withdraws 20,000,000 units of WBTC, 0.2 WBTC at the token's 8 decimals, to the attacker, then settles that pass's debt not out of its own balance but by moving the same 0.2 WBTC out of a separate wallet, 0x765DECF4Fa157756e850C1079F60801b9219Edd1, against that wallet's existing WBTC approval. Eighty-five passes of 0.2 WBTC account for the full 17 WBTC drained, and the attack transaction's own record of 170 ERC-20 transfers, exactly two per pass, matches that count. Core's source is verified on Etherscan and carries no warning. The router address is unverified, and Etherscan now shows a standing notice on it: "This contract is reported to have a vulnerability. Please avoid sending funds to it and revoke any token approvals." Without the router's own source, the exact line that failed to bind the payer to the caller cannot be read directly, only inferred from what the reconstruction does and from what the shared payment library allows.

The figures and the fallout

DeFiHackLabs's README puts the loss at roughly $1.4 million. Etherscan's own record of the transaction prices the 17 WBTC moved at $1,309,616.15; the two figures rest on different BTC prices, and both describe the same realized transfer out of the victim's wallet rather than a notional amount. The attacker's address, tagged by Etherscan as reported by Blockaid, received its initial funding through RAILGUN before the attack and moved proceeds out through Tornado Cash in deposits ranging from 0.1 to 100 ETH, later swapping part of the haul through the Velora aggregator. Its balance today sits under $200. Ekubo published its own account of the incident as a post on X, which the DeFiHackLabs README links. No patch writeup, compensation plan or further statement from Ekubo appears in the protocol's GitHub, in Blockaid's or CertiK's published posts, or in SlowMist's incident list. DeFiLlama's hacks index lists Ekubo (5 May 2026, Ethereum, $1.4 million, classified Access Control / Token Approval Abuse), describing it as an EVM router that failed to verify the payer had authorized the transfer, with 17 wBTC stolen and laundered via Tornado Cash.

A familiar shape

A swap path that moves tokens out of an address the caller does not control, because the contract trusts whichever payer address it was handed, is not unique to this incident. RouterDrain lost funds four months later to a permissionless swap entry point that let a fake pool abuse a router's own standing allowances in much the same way: the router decided whose tokens would move, and nothing checked that the decision matched who was actually asking.

Sources read (18)

Other exploits

Query every incident yourself — free, no signup

Updated 30 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.