OAK — OnChain Attack Knowledge

Worked example · 2026-10

EtherVista — the K check multiplied uint112 reserves and overflowed, so a smaller product passed as a larger one — EtherVista / EVM — 2026-10-09

Loss
~$18.6K in WETH and VISTA.
OAK Techniques observed
OAK-T9.016 (Contract Accounting / State-Invariant Flaw — primary, arithmetic overflow. EtherVistaPair.swap() checked the constant-product invariant on reserves stored as uint112 in a way that could wrap, letting a post-swap product that had actually fallen pass the check. Two crafted swaps drained the pool. See techniques/T9.016-contract-accounting-state-invariant-flaw.md). OAK-T9.004 — the attacker first registered its own contract as an authorised router.
Re-mapped 2026-10-11
primary Technique moved from T9.011 to T9.016-contract-accounting-state-invariant-flaw.
Attribution
pseudonymous.
Key teaching point
Uniswap V2 stores uint112 reserves so that their product fits in uint256; a fork that changes the multiplication path loses that guarantee. Forked AMM math is only safe with its original widths and casts.

Summary

On 2026-10-09 an attacker registered its own contract as an EtherVista router and executed two crafted swaps whose overflowing K check passed despite a falling reserve product, draining ~$18.6K of WETH and VISTA. SlowMist flagged it at 05:20 UTC.

Timeline (UTC)

Only the SlowMist alert time is public; the exploit transaction time is not stated in the cited sources.

When What happened OAK
Before 2026-10-09 (undisclosed) The pair contract (0xfdd05552f1377aa488afed744c8024358af02041) checks its K-invariant by multiplying uint112 reserves in a way that overflows and wraps, so the check can pass when the real reserve product has fallen. Since when is not stated. T9.016
2026-10-09 (before the drain, time undisclosed) The attacker (0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa) registers its own contract (0x469424b628a9d2036e41496e814db500d683b120) as an authorised router. Funding and rehearsal are not published. T9.004
2026-10-09 03:47:59 (block time, traced by OAK) Two crafted swaps through that router, shown in 0xb2c7332d9e1be6a86d9d37083aa4cc0d94b60eb95cc9b29494555a3c09764930, pass the overflowing check and drain WETH and VISTA (~$18.6K). T9.016
2026-10-09 03:55 to 05:43 Traced by OAK: the attacker burns 43,930.08065685 VISTA to 0x…dEaD, unwraps the WETH, swaps 7.46802069 ETH for 18,590.71646 USDC through the Uniswap Universal Router, and forwards 11,000 USDC in three transfers to an older, unlabelled wallet (see Fund flow). —
2026-10-09 05:20 SlowMist publishes an alert naming the overflow root cause. No project statement, pause or refund appears in the cited sources. response

Key addresses:

Fund flow

Ethereum leg, traced by OAK with tools/explorer.py (Blockscout, keyless) on 2026-10-30, looking at the five days after the exploit. Edges marked traced by OAK were checked on-chain. The attacker wallet received many zero-value or unverified token transfers, some from lookalike addresses, which the tool skipped (76 skipped_unverified_token_transfers). Several of them imitate the real USDC recipient 0x043c8f2df89612f9da2d91a92d30d3295cf842d3: 0x043ca157660b3110bb0e70c6d35475bfe86d42d3, 0x043ce2ae037a033a1b0285d9f4fdb523c27a42d3, 0x043c1f594e8498abd25dc0612783abcb9fa642d3 and 0x043cb00638fac40015d97f08afaf52105d8842d3 all share its first six and last four characters. OAK followed only the address the attacker actually paid USDC to (0x043c8f2d…, written in full above).

All transfers as a table (9)
Time (UTC)FromToAmountOAKTxBasis
2026-10-09T03:37:59ZGas funder (unlabelled)
0x963737c550e70ffe4d59464542a28604edb2ef9a
Attacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
0.0464 ETH0xbbe324f8dd2ba2b91d428ab76704b74ea697771f136aa1778c98b68226a8f3adtraced by OAK
2026-10-09T03:47:59ZEtherVista pair
0xfdd05552f1377aa488afed744c8024358af02041
Attack contract (registered router)
0x469424b628a9d2036e41496e814db500d683b120
21.3656 WETHT9.0160xb2c7332d9e1be6a86d9d37083aa4cc0d94b60eb95cc9b29494555a3c09764930traced by OAK
2026-10-09T03:47:59ZAttack contract (registered router)
0x469424b628a9d2036e41496e814db500d683b120
EtherVista pair
0xfdd05552f1377aa488afed744c8024358af02041
13.8876 WETH (×2)T9.0160xb2c7332d9e1be6a86d9d37083aa4cc0d94b60eb95cc9b29494555a3c09764930traced by OAK
2026-10-09T03:47:59ZAttack contract (registered router)
0x469424b628a9d2036e41496e814db500d683b120
Attacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
7.478 WETHT9.0160xb2c7332d9e1be6a86d9d37083aa4cc0d94b60eb95cc9b29494555a3c09764930traced by OAK
2026-10-09T03:47:59ZEtherVista pair
0xfdd05552f1377aa488afed744c8024358af02041
Attacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
43,855.9022 VISTAT9.0160xb2c7332d9e1be6a86d9d37083aa4cc0d94b60eb95cc9b29494555a3c09764930traced by OAK
2026-10-09T03:55:47ZAttacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
0x...dEaD burn address
0x000000000000000000000000000000000000dead
43,930.0807 VISTA0x9be0e1c315cc2298597758a98bd12c8f25a7ee50037897644401a7d6f5638db4traced by OAK
2026-10-09T04:41:59ZAttacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
Uniswap Universal Router (ETH to USDC)
0x23617e59a5925b2a4bf75d73ff6711cd0b29de85
7.468 ETH (×3)0xbf33cf4c991ca5527182406fcae5c502e5942f4959a6d0d7c47ecb61833b4ba1traced by OAK
2026-10-09T04:41:59ZUniswap Universal Router (ETH to USDC)
0x23617e59a5925b2a4bf75d73ff6711cd0b29de85
Attacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
18,590.7165 USDC (×3)0xbf33cf4c991ca5527182406fcae5c502e5942f4959a6d0d7c47ecb61833b4ba1traced by OAK
2026-10-09T05:36:47ZAttacker
0xbbf8f3fe8e4fdf6b594e6107144d78293d2018fa
USDC recipient (unlabelled)
0x043c8f2df89612f9da2d91a92d30d3295cf842d3
11,000 USDC (×3)0x00104388309a3d311f4e96a27f4400e563a9b083da92b8e46a2aba0be3379317traced by OAK

What the trace adds beyond the sources:

  • Exploit time and size. The exploit transaction ran at 2026-10-09 03:47:59 UTC, about 1.5 hours before the SlowMist alert. The attack contract took 21.36557848 WETH from the pair, paid 13.88762601 WETH back, and the attacker EOA ended with 7.47795247 WETH and 43,855.90219628 VISTA.
  • Funding. The attacker was funded with 0.04644843 ETH from an older unlabelled wallet (0x963737c550e70ffe4d59464542a28604edb2ef9a, holding about 111 ETH on 2026-10-30) six minutes before the first test swap.
  • Rehearsal. Between 03:43 and 03:54 UTC the attacker made six small buys and sells through the EtherVista router (0x9bd63c5d44ff28390df1eaafd4eb4bd73e94a72a), about 0.04 ETH in total, before the drain.
  • The VISTA was burned, not sold. The attacker sent 43,930.08065685 VISTA to 0x000000000000000000000000000000000000dead at 03:55:47 UTC, a little more than the drain yielded because of the small buys.
  • The WETH was cashed out. It was unwrapped to ETH (six withdraw calls, 7.477 WETH in total), and 7.46802069 ETH was swapped for 18,590.71646 USDC in three Universal Router transactions between 04:41 and 04:44 UTC. This USDC figure matches the ~$18.6K loss in the sources; the burned VISTA is not part of it.
  • Onward. 11,000 USDC was sent in three transfers (1,000, 5,000, 5,000) to 0x043c8f2df89612f9da2d91a92d30d3295cf842d3, a wallet that already had activity from April 2026 and showed no outgoing transfers in the window; the remaining ~7,590 USDC stayed in the attacker EOA through the end of the window (balance check only, not a full ledger).
  • Limits. The 0x043c8f2d… wallet is unlabelled; OAK does not attribute it. Tokens PVC and ETHG that appeared in the attacker wallet were unsolicited and ignored. The router registration transaction was not traced.

Root-cause evidence

Public references

Techniques demonstrated (2)

More incidents