Reproduced Exploit
Super DCA: An attacker's unlisted duplicate DCA/USDC V4 pool (same hook) triggers the shared per-toke
Chain
Other
Category
untagged
Date
Jan 1970
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: 63420-h-2-attackers-will-steal-rewards-from-legitimate-pools-by-ma. Standalone Foundry PoC and full write-up: 63420-h-2-attackers-will-steal-rewards-from-legitimate-pools-by-ma_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/theft · vuln/reward-accounting
Reproduction: a faithful minimal reproduction of the vulnerable finding — the vulnerable function is reproduced verbatim (marked
@>) with faithful minimal doubles; local deploy, no fork.
Root cause#
An attacker's unlisted duplicate DCA/USDC V4 pool (same hook) triggers the shared per-token reward accrual and captures the community donation, stealing 500e18 DCA (the community half of USDC's 1000e18 reward bucket) to the attacker EOA while the legitimately-listed pool receives 0.
: Currency.unwrap(key.currency0);
// Calculate pending rewards from the external staking contract
uint256 rewardAmount = staking.accrueReward(otherToken); // @> per-token bucket accrued (and reset) for ANY pool incl. an unlisted duplicate; NO pool-legitimacy check
if (rewardAmount == 0) return;
Why it's exploitable here#
An attacker's unlisted duplicate DCA/USDC V4 pool (same hook) triggers the shared per-token reward accrual and captures the community donation, stealing 500e18 DCA (the community half of USDC's 1000e18 reward bucket) to the attacker EOA while the legitimately-listed pool receives 0.
Attack path#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0xe3a787a4e4…:
- L55 — Position struct tick field: Setup: a Uniswap V4 position struct field (
tickUpper) used by the hook's liquidity handling. - L60 — PoolManager sync interface: Setup: declares the V4 PoolManager
synccall used when settling token deltas. - L61 — PoolManager settle interface: Setup: declares the V4
settlecall that finalizes token payments in the hook flow. - L263 — Route beforeAddLiquidity hook: Dispatches the add-liquidity hook — invoked for ANY pool sharing this hook, including the attacker's unlisted duplicate.
- L313 — Distribute and settle rewards: Handles reward distribution and settlement for the triggering pool, keyed only by the pool's tokens.
- L324 — Accrue reward by token only: Root cause: reward accrues for
otherTokenwithout verifying the pool is the registered/listed one, so an unlisted duplicate pool captures it. - L366 — Return hook selector: Returns the expected hook selector to the PoolManager, completing the attacker-triggered add-liquidity callback.
PoC#
Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):
cd 63420-h-2-attackers-will-steal-rewards-from-legitimate-pools-by-ma_exp
forge test -vvv
The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: An attacker's unlisted duplicate DCA/USDC V4 pool (same hook) triggers the shared per-token reward accrual and captures the community donati. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 63420-h-2-attackers-will-steal-rewards-from-legitimate-pools-by-ma_exp (evm-hack-registry mirror).
- AuditVault finding: 63420-h-2-attackers-will-steal-rewards-from-legitimate-pools-by-ma.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: search "Super DCA: An attacker's unlisted duplicate DCA/USDC V4 pool (same hook) triggers the shared per-toke".
- 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.