Reproduced Exploit
Alchemix: A malicious veALCX holder pokes 3x in one epoch
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: 38196-malicious-user-can-steal-flux-token-by-abusing-voterpoke-imm. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC.
Vulnerability classes: vuln/unfair-mint
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#
A malicious veALCX holder pokes 3x in one epoch, tripling unclaimedFlux via accrueFlux's unbounded accumulation, then claimFlux mints 3 FLUX (3x the fair 1e18 single-epoch entitlement, a 2e18 illegitimate over-mint) to the attacker EOA.
/// @dev Verbatim audited source (see VERBATIM marker above).
function accrueFlux(uint256 _tokenId) external {
require(msg.sender == voter, "not voter");
uint256 amount = IVotingEscrow(veALCX).claimableFlux(_tokenId);
unclaimedFlux[_tokenId] += amount; // @> no claimed/per-epoch tracking: repeated pokes accumulate claimableFlux without bound
}
Why it's exploitable here#
A malicious veALCX holder pokes 3x in one epoch, tripling unclaimedFlux via accrueFlux's unbounded accumulation, then claimFlux mints 3 FLUX (3x the fair 1e18 single-epoch entitlement, a 2e18 illegitimate over-mint) to the attacker EOA.
Attack path#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0x8ea53755a6…:
- L41 — Setup: token name: Setup: constructor wiring assigns the FLUX token's
name. - L45 — Internal FLUX mint helper: Setup:
_mintis the routine that will over-issue FLUX once the claim reads the inflated, accumulated balance. - L58 — Setup: ERC20 helper returns true: Setup: standard ERC20 boilerplate returning
true— plumbing of the FLUX token. - L105 — Setup: wire the Voter address: Setup:
setVoterlinks the escrow to the Voter whose unguardedpokedrives the repeated accrual. - L126 — Claim reads inflated FLUX amount: Root cause: this reads
claimableFlux, whichaccrueFluxlet accumulate with no epoch cap — after 3 pokes it returns 3x the fair amount, then minted. - L132 — updateFlux adjusts accrual:
updateFluxis part of the accrual bookkeeping the repeated pokes exploit to rununclaimedFluxup. - L164 — unclaimedFlux accumulator storage:
unclaimedFluxis the per-token accumulator that grows unbounded across pokes, holding the tripled claimable amount.
PoC#
Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):
cd 38196-malicious-user-can-steal-flux-token-by-abusing-voterpoke-imm_exp
forge test -vvv
The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: A malicious veALCX holder pokes 3x in one epoch, tripling unclaimedFlux via accrueFlux's unbounded accumulation, then claimFlux mints 3 FLUX. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).
Sources & further analysis#
Reproductions & code
- No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
- AuditVault finding: 38196-malicious-user-can-steal-flux-token-by-abusing-voterpoke-imm.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: search "Alchemix: A malicious veALCX holder pokes 3x in one epoch".
- 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.