Reproduced Exploit
GTE — burn over-estimates LP distribution when launchpad fees accrued
1. Accrued launchpad fees sit in pair balances but are excluded from reserves. 2. mint prices LP against reserves; burn pays out against full balances. 3. Mint + burn captures a slice of fees that belong to the distributor. 4. HARM: positive token0 profit stolen from fee accrual (~9.09e21 units in…
Chain
Other
Category
untagged
Date
Aug 2025
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: 64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou. Standalone Foundry PoC and full write-up: 64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou_exp in the
evm-hack-registrymirror.
Vulnerability classes: fee-calculation · direct-drain · fee-accounting
Reproduction: self-contained Foundry PoC with only
forge-std. Full trace: output.txt. PoC: test/64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou_exp.sol.
AuditVault taxonomy: lang/solidity · platform/code4rena · has/github · has/poc · severity/high · sector/dex · sector/launchpad · genome: fee-calculation · direct-drain · fee-accounting
Key info#
| Impact | HIGH — LP burn claims a share of accrued launchpad fees; repeatable drain |
| Protocol | GTE |
| Vulnerable code | GTELaunchpadV2Pair.burn amounts from balances |
| Bug class | Fee-inclusive pro-rata on burn |
| Finding | Code4rena 2025-08 GTE · #64851 · H-03 · AvantGard |
| Report | Code4rena report |
| Source | AuditVault |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
- Accrued launchpad fees sit in pair balances but are excluded from reserves.
mintprices LP against reserves;burnpays out against full balances.- Mint + burn captures a slice of fees that belong to the distributor.
- HARM: positive token0 profit stolen from fee accrual (~9.09e21 units in the synthetic).
The vulnerable code#
amount0 = liquidity.mul(balance0) / _totalSupply; // @> VULN
amount1 = liquidity.mul(balance1) / _totalSupply; // @> VULN
Fix: subtract accruedLaunchpadFee{0,1} from balances before pro-rata.
Root cause#
Reserves = balances − accrued launchpad fees. Burn ignores that split and treats fee inventory as LP-claimable.
Preconditions#
- Non-zero
accruedLaunchpadFee0oraccruedLaunchpadFee1(prior swaps, same block so fees not yet distributed). - Attacker can mint and burn LP.
Attack walkthrough#
- Seed pool with liquidity and token0 fee accrual.
- Deposit proportional amounts; mint LP.
- Transfer LP to pair and burn.
- Receive more token0 than deposited — the fee over-claim.
Diagrams#
Impact#
Direct drain of launchpad fee inventory; repeatable same-block until fees are cleared.
Sources#
- AuditVault: https://github.com/Auditware/AuditVault/blob/main/findings/64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou.md
- Report: https://code4rena.com/reports/2025-08-gte-perps-and-launchpad
- Repo@commit: https://github.com/code-423n4/2025-08-gte-perps/blob/f43e1eedb65e7e0327cfaf4d7608a37d85d2fae7/contracts/launchpad/uniswap/GTELaunchpadV2Pair.sol#L217-L218
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou_exp (evm-hack-registry mirror).
- AuditVault finding: 64851-h-03-gtelaunchpadv2pairburn-over-estimates-distribution-amou.
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.