Reproduced Exploit
GTE — Launchpad pairFor CREATE2 salt mismatches factory
1. Factory salt = keccak(token0, token1, launchpadLp, feeDistributor). 2. pairFor salt = keccak(token0, token1) only. 3. If createPair already exists, try/catch leaves the wrong predicted address. 4. HARM: graduation reverts forever against an empty address.
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: 64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d. Standalone Foundry PoC and full write-up: 64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d_exp in the
evm-hack-registrymirror.
Vulnerability classes: wrong-condition · permanent · fot-slippage
Reproduction: self-contained Foundry PoC with only
forge-std. Full trace: output.txt. PoC: test/64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d_exp.sol.
AuditVault taxonomy: lang/solidity · platform/code4rena · has/github · has/poc · severity/high · sector/dex · sector/launchpad · genome: wrong-condition · permanent
Key info#
| Impact | HIGH — graduation / endRewards stuck when pair pre-exists |
| Protocol | GTE |
| Vulnerable code | Launchpad.pairFor salt |
| Bug class | CREATE2 salt mismatch |
| Finding | Code4rena 2025-08 GTE · #64856 · H-08 · codegpt |
| Report | Code4rena report |
| Source | AuditVault |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
- Factory salt =
keccak(token0, token1, launchpadLp, feeDistributor). pairForsalt =keccak(token0, token1)only.- If
createPairalready exists, try/catch leaves the wrong predicted address. - HARM: graduation reverts forever against an empty address.
The vulnerable code#
// @> VULN: salt omits launchpadLp + launchpadFeeDistributor
keccak256(abi.encodePacked(token0, token1))
Fix: match factory salt exactly.
Root cause#
Two different CREATE2 address formulas for the same pair.
Preconditions#
- Pair already created via factory before graduation path runs.
Attack walkthrough#
- Pre-create the real factory pair.
- Trigger graduation;
createPairreverts PAIR_EXISTS. - Code keeps wrong
pairForaddress with no code → revert.
Diagrams#
Impact#
Permanent inability to graduate (and endRewards failures) for that token pair.
Sources#
- AuditVault: https://github.com/Auditware/AuditVault/blob/main/findings/64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d.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/Launchpad.sol#L569-L587
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d_exp (evm-hack-registry mirror).
- AuditVault finding: 64856-h-08-create2-address-of-the-uniswap-pair-used-by-launchpad-d.
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.