FASTSWAP Hack
Incident Overview
The attacker:
https://bscscan.com/address/0xfd544b21…fd0921, as was stated by the project team in the tweet:
https://archive.is/4MRMN
tokenMigrate() function was called by the address which probably was saved to MasterChef in the constructor() initialization into private variable migrateAddress. Since the caller of the tokenMigrate() function was address 0x193D4D22…8D15ef, he was able to invoke LP and token migrations multiple times at:
https://explorer.bitquery.io/ru/bsc/txs/calls?contract=0xad4219cd…64d701&method=99594431
After, tokens were transferred to the external address multiple times, the example transaction:
https://bscscan.com/tx/0x5bb2d2ce…b0f9e2
Liquidity was removed multiple times, tokens were sold as well, the example transaction:
https://bscscan.com/tx/0x830f9f79…b144ba
Incident Report
Protocol Information
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.
What Auditors Should Check
If you're auditing a protocol with similar architecture to FASTSWAP, these are the critical security checks that could have prevented this incident (August 2021).
- Verify all logic paths related to Other are guarded by proper access controls and input validation
- 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 TrialSecurity Audit History
- Audit Report 1 Report
Sources & References
-
01
Source 1 https://fastswap.finance/#/
Learn to Prevent the Next FASTSWAP
The FASTSWAP 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.