Velocore V2 Hack

TOTAL LOST $6.8M
Medium Access Control Attacks Linea zkSync Era

What happened

Velocore V2's constant-product pools were exploited on Linea and zkSync Era after a pool function intended for Vault-controlled state changes could be called directly. Crafted inputs triggered unchecked fee arithmetic and a single-token-withdrawal underflow, allowing the attacker to mint outsized LP balances and redeem pool assets. Reported losses were approximately $6.8 million.

Technical Root Cause

The CPMM pool exposed velocore__execute without restricting the caller to the Vault, despite that function changing pool state intended to be Vault-controlled. Crafted values overflowed effectiveFee1e9 and pushed feeMultiplier outside its expected range. A single-token withdrawal then underflowed, enabling excessive LP-token minting and redemption.

Case & protocol details

Classification Access-control failure / arithmetic and fee-accounting flaw
Protocol Type DEX
Smart Contract Language Solidity
Official Website velocore.xyz/
Protocol Twitter/X @velocorexyz

Attack Timeline

The attacker called a CPMM pool's velocore__execute function directly with crafted values. This altered fee state through unchecked arithmetic, raising the effective fee multiplier beyond its intended range. The malformed swaps then used a single-token-withdrawal underflow to mint an outsized LP-token balance.

The attacker redeemed those LP tokens to drain volatile pools on Linea and zkSync Era. Flash liquidity appeared in the broader extraction path, but the root issue was direct access to pool-state logic combined with unsafe fee and withdrawal arithmetic.

Practice this exploit pattern safely

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.