Thorchain DEX Hack
Incident Overview
THORChain Exploiter 1 Address: https://etherscan.io/address/0x4b713980…5ebc5a
THORChain Exploiter 2 Wallet: https://etherscan.io/address/0x3a196410…85c031
Contract attacker address:
https://etherscan.io/address/0x4a338620…8e3c9c
According to ThorChain’s preliminary incident report, the bug was located within the ETH Bifrost (bridge) code:
https://gitlab.com/thorchain/thornode/-/blob/develop/bifrost/pkg/chainclients/ethereum/ethereum_block_scanner.go#L794
The code contains an over-ride loop, designed only for use in vaultTransferEvent transactions, which the hacker was able to manipulate. The hacker was able to wrap the router with their own contract, allowing them to access this over-ride.
The attacker drained liquidity in various coins:
- 2,500 ETH
- 57,975.33 SUSHI
- 8.7365 YFI
- 171,912.96 DODO
- 514.519 ALCX
- 1,167,216.739 KYL
- 13.30 AAVE
Ether were sent to the external address:
https://etherscan.io/address/0xace2d948…bc470e
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 Thorchain DEX, these are the critical security checks that could have prevented this incident (July 2021).
- Verify all logic paths related to Over-ride Logic Exploit / 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
- Certik Report
Sources & References
-
01
Source 1 https://rekt.news/thorchain-rekt/
- 02
-
03
Reference https://www.rekt.news/thorchain-rekt/
Learn to Prevent the Next Thorchain DEX
The Thorchain DEX 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.