BiSwap Hack

TOTAL LOST $865K
Low Other / Improper Access Control bsc
Affected Chain bsc Incident surface
Recovered - No recovery reported
All-Time Rank #1036 By amount stolen
Protocol Type Cross Chain Bridge Target category

Incident Overview

BiSwap, a DEX on Binance Smart Chain, was exploited, resulting in the loss of 865,000 $USD.

BiSwap is a DEX, running on BSC. The protocol was exploited via a parameter validation issue. In an intricate exploit, BiSwap's system failed to verify the validity of tokens and their pair parameters, which was taken advantage of by an attacker. By forging token0, token1, and a pair, the attacker was able to manipulate the migration function of the migration contract, leading to a loss of users' burned assets.

In the first step, using a valid pair and fake tokens, the attacker called the migration function and added the users' burned assets into the contract, subsequently adding two fake tokens to the LP pool. In the second step, using real tokens and a fake LP, they called the migration function again, adding the assets left in the contract to their own LP. As a result, users' assets were replaced with fake LP assets, while real LP assets were added to the attacker's LP.

The stolen funds of 865,000 $USD were transferred through TornadoCash.

Attacker Addresses:

https://bscscan.com/address/0xe3aeede5…df30f6

https://bscscan.com/address/0xA1E31B29…9B1976

Malicious Contracts:

https://bscscan.com/address/0x2a825a17…c9b833

https://bscscan.com/address/0x839b0afd…9c1dbf

Malicious Transaction Example:

https://bscscan.com/tx/0xa6cc4b18…7d7a6c

Incident Report

Protocol / Project BiSwap
Date of Incident
Affected Chain(s) bsc
Attack Technique Other / Improper Access Control
Classification Exchange (DEX) / Access Control

Protocol Information

Protocol Type Cross Chain Bridge
Affected Token BSW
Smart Contract Language Solidity
Official Website biswap.org/
Protocol Twitter/X @Biswap_Dex
Team Anonymous
Source Code Verified On-Chain

Market Context at Time of Hack

Token Categories
Collectibles & NFTs Decentralized Exchange (DEX) Token DeFi Gaming Staking Yield Farming AMM DEX

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of BiSwap's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely, with a thorough Other / Improper Access Control audit checklist and test coverage

If you're auditing a protocol with similar architecture to BiSwap, these are the critical security checks that could have prevented this incident (June 2023).

  • Verify all logic paths related to Other / Improper Access Control are guarded by proper access controls and input validation - see the Access Control Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Security Audit History

Bug Bounty BiSwap Details

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Access Control Attacks examples →

Sources & References

Learn to Prevent the Next BiSwap

The BiSwap hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial