DefiBox Hack
Incident Overview
Defibox discovered an abnormal exchange situation of the EOS-EMOON trading pair on September 16th. After an emergency investigation, the swap contract was suspended on September 17th, and it was reopened on the morning of September 17th after auditing and multiple signings were completed.
This exchange abnormality is caused by the incompatibility between the Defibox Swap contract and the EMOON contract. Before the event, the number of pots was 482636464535179.88 EMOON/4866.1494 EOS. When the contract was suspended, the EMOON pot was 5790970803030.11 EMOON/3.4553EOS, resulting in about 4863 EOS loss.
The Defibox team has eliminated this type of risk caused by other burning tokens and has upgraded the Swap contract to further improve the security of the contract.
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 DefiBox, these are the critical security checks that could have prevented this incident (September 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 TrialSources & References
-
01
Source 1 https://hacked.slowmist.io/
Learn to Prevent the Next DefiBox
The DefiBox 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.