Reproduced Exploit

GTE — DOS graduation via 1-wei donation + sync

1. Donate 1 wei quote to empty pair and sync(). 2. Reserves become one-sided (0, >0). 3. UniswapV2Library.quote requires both reserves > 0 → reverts. 4. HARM: graduation DOS.

Aug 2025Otheruntagged2 min read

Chain

Other

Category

untagged

Date

Aug 2025

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

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.

Loading fork state…

Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 64857-h-09-dos-of-launchpad-graduation-via-addliquidity-with-1-wei. Standalone Foundry PoC and full write-up: 64857-h-09-dos-of-launchpad-graduation-via-addliquidity-with-1-wei_exp in the evm-hack-registry mirror.


Vulnerability classes: frontrun · dos-resistance · frozen-funds

Reproduction: self-contained Foundry PoC with only forge-std. Full trace: output.txt. PoC: test/64857-h-09-dos-of-launchpad-graduation-via-addliquidity-with-1-wei_exp.sol.

AuditVault taxonomy: lang/solidity · platform/code4rena · has/github · has/poc · severity/high · sector/dex · sector/launchpad · genome: frontrun · dos-resistance · frozen-funds


Key info#

ImpactHIGH — temporary DOS of token graduation
ProtocolGTE
Vulnerable code_graduate → router addLiquidityquote
Bug classOne-sided reserves break quote
FindingCode4rena 2025-08 GTE · #64857 · H-09 · levantequarini
ReportCode4rena report
SourceAuditVault
Compiler^0.8.24 (PoC)

TL;DR#

  1. Donate 1 wei quote to empty pair and sync().
  2. Reserves become one-sided (0, >0).
  3. UniswapV2Library.quote requires both reserves > 0 → reverts.
  4. HARM: graduation DOS.

The vulnerable code#

SOLIDITY
require(reserveA > 0 && reserveB > 0, "UniswapV2Library: INSUFFICIENT_LIQUIDITY"); // @> VULN path

Fix: if either reserve is 0, bypass router and pair.mint() directly.


Root cause#

Graduation assumes empty pair (first mint) but attacker can create one-sided reserves first.


Preconditions#

  • Target pair exists (or is creatable) before graduation liquidity is added.
  • Attacker can transfer 1 wei + call sync.

Attack walkthrough#

  1. Transfer 1 wei quote to pair; sync().
  2. Call graduation / addLiquidity path.
  3. quote reverts → graduation fails.

Diagrams#

sequenceDiagram participant Atk as Attacker participant Pair as UniV2Pair participant LP as Launchpad Atk->>Pair: transfer 1 wei quote Atk->>Pair: sync one-sided reserves LP->>Pair: graduate addLiquidity quote Pair-->>LP: revert INSUFFICIENT_LIQUIDITY

Impact#

Denial of launchpad graduation until reserves are corrected.


Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • 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.