Reproduced Exploit
DaosLive — sniped tokens are paid to the contract and cannot be withdrawn
finalize calls exactInputSingle with recipient: address(this). The router mints 1000 ether of tokens to DaosLive. The contract has no sweep, no withdraw, and no forward. A call to sweep(address) hits no function and returns false. The balance stays 1000 ether. The treasury balance stays 0.
Chain
Other
Category
dos
Date
Jun 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: 57868-h-01-swapped-tokens-during-finalize-permanently-stuck-in-dao. Standalone Foundry PoC and full write-up: 57868-h-01-swapped-tokens-during-finalize-permanently-stuck-in-dao_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/dos/frozen-funds · vuln/logic/missing-check
Reproduction: a self-contained Foundry PoC that compiles and runs offline with only
forge-std— no fork and no RPC. Trace: output.txt. PoC: test/57868-h-01-swapped-tokens-during-finalize-permanently-stuck-in-dao_exp.sol.
Key info#
| Impact | HIGH — 1000 ether of sniped tokens sit on DaosLive with no withdraw |
| Protocol | DaosLive finalize |
| Vulnerable code | recipient: address(this) and no sweep |
| Bug class | Tokens are received by a contract that cannot send them on |
| Finding | Shieldify — DaosLive · H-01 · id 57868 |
| Report | DaosLive-Security-Review.md |
| Source | AuditVault finding |
| Status | Reproduced here as a local synthetic of the audited recipient |
| Compiler | solc 0.8.27, cancun, via IR |
TL;DR#
finalize calls exactInputSingle with recipient: address(this). The router mints 1000 ether of tokens to DaosLive. The contract has no sweep, no withdraw, and no forward. A call to sweep(address) hits no function and returns false. The balance stays 1000 ether. The treasury balance stays 0.
The fixed call sets recipient to the treasury. The treasury then holds 1000 ether and DaosLive holds 0.
The vulnerable code#
address recipient = toTreasury ? address(treasury) : address(this);
// @> VULN: recipient is address(this). Nothing in this contract can withdraw the tokens.
amountOut = router.exactInputSingle(
ExactInputSingleParams({
tokenIn: address(0),
tokenOut: address(token),
fee: 3000,
recipient: recipient,
amountIn: snipeAmount,
amountOutMinimum: 0,
sqrtPriceLimitX96: 0,
deadline: block.timestamp
})
);
toTreasury is false on the vulnerable contract, so recipient is address(this). The audited source is DaosLive.sol line 314 at commit 9a1856db, where the field is the literal address(this).
Root cause#
The swap succeeds and the tokens have an owner. That owner is the launch contract, and the launch contract has no function that can move an ERC-20 balance.
Preconditions#
snipeAmountis 1000 ether.- The router mints
amountIntokens toparams.recipientwhen the deadline is the current block.
Attack walkthrough#
finalizesets the recipient to itself and calls the router.- The router mints 1000 ether of tokens to
DaosLive. sweep(address)is called. There is no such function. The call returns false.DaosLivestill holds 1000 ether. The treasury holds 0.
Control: recipient is the treasury. finalize returns 1000 ether, the treasury balance is 1000 ether, and the contract balance is 0.
Diagrams#
Impact#
1000 ether of the sniped token are stuck on DaosLive. Nothing in the contract can send them to the DAO. Sending them straight to the treasury leaves 0 on the contract and 1000 ether on the treasury.
Remediation#
Pass the DAO treasury as recipient, or add an authorized sweep that forwards any ERC-20 balance off DaosLive.
Sources#
Taxonomy#
severity/highvuln/dos/frozen-funds·vuln/logic/missing-check
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 57868-h-01-swapped-tokens-during-finalize-permanently-stuck-in-dao_exp (evm-hack-registry mirror).
- AuditVault finding: 57868-h-01-swapped-tokens-during-finalize-permanently-stuck-in-dao.
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.