Reproduced Exploit
A same-transaction staker withdraws the Rush launch fee
deployLiquidity computes a fee and transfers totalFee - reserveFee straight to the liquidity pool. The finding states the default split is 90 percent to the pool and 10 percent to the reserve. The pool is an ERC4626 that treats its token balance as assets, and deposits and withdrawals are open in t…
Loss
A staker with 99 of 100 shares keeps 89.1 of the 90 pool fee
Chain
Ethereum
Category
defi
Date
Feb 2025
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack replays in your browser. Step through it by Solidity line or by opcode.
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. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake. Standalone Foundry PoC and full write-up: 56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/defi/donation-attack · vuln/logic/share-price
Key info#
| Field | Value |
|---|---|
| Loss | A staker with 99 of 100 shares keeps 89.1 of the 90 pool fee |
| Vulnerable contract | LiquidityDeployer.deployLiquidity |
| Attacker EOA | 0x1111111111111111111111111111111111111111 |
| Attack contract | Exploit at 0x15452ec016c4dc8c549e7fe6ff4b26324ea8b7a4 |
| Attack tx | Exploit.run() |
| Chain / block / date | Ethereum model · block 0 · 2025-02 |
| Compiler | solc 0.8.27, cancun, via IR |
| Bug class | The pool fee is transferred into a vault that prices shares off its token balance |
TL;DR#
deployLiquidity computes a fee and transfers totalFee - reserveFee straight to the liquidity pool. The finding states the default split is 90 percent to the pool and 10 percent to the reserve. The pool is an ERC4626 that treats its token balance as assets, and deposits and withdrawals are open in the same transaction.
The model uses a 100 fee, so 10 goes to the pair and 90 goes to the pool. An honest staker holds 1 and the attacker holds 99. After the transfer the pool balance is 190. The 99 shares withdraw 188.1, and 89.1 of the fee is sent to the attacker. The control prices shares off deposits that the vault itself recorded. That withdrawal returns 99, and the pool still holds the honest 1 plus the 90 fee.
The vulnerable code#
reserveFeeStored = reserveFee;
weth.transfer(address(pair), reserveFee);
poolFeeStored = poolFee;
weth.transfer(address(pool), poolFee); // @> VULN: the vault prices shares off this balance
Impact#
The launch fee that was meant to stay in the pool as yield is withdrawn by the dominant staker in the same transaction. Here that amount is 89.1 of the 90 pool fee.
How to reproduce#
cd 56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake_exp
forge test -vv
test_exploit_staker_takes_89_1_of_the_fee asserts the attacker receives 89.1 and the withdrawal is 188.1. test_control_accounted_assets_keep_the_fee asserts the withdrawal is 99 and the pool keeps 91.
Sources#
- AuditVault finding: https://github.com/Auditware/AuditVault/blob/main/findings/56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake.md
- Hexens report: Rush Trading, 2025-02-03
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake_exp (evm-hack-registry mirror).
- AuditVault finding: 56660-rush1-7-rusherc20-launch-fee-bypass-due-to-flash-loan-stake.
Alerts & third-party analyses
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.