Abracadabra Spell Hack

TOTAL LOST $1.7M
Medium Sequential State Manipulation Exploit / Other ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered - No recovery reported
All-Time Rank #702 By amount stolen
Auditors 1 Prior security audit

Incident Overview

On October 4, 2025, Abracadabra Money (MIM_Spell) was exploited for approximately $1.7 million due to a critical flaw in the cook function's implementation logic. The attacker bypassed solvency checks by exploiting a vulnerability where status variables could be cleared, allowing unauthorized borrowing of MIM tokens which were then swapped and deposited into Tornado Cash.

The vulnerability existed in the cook function, which allows users to execute multiple predefined operations in a single transaction with shared status variables. The attacker exploited flawed logic where action sequences could bypass insolvency checks. Specifically, when action=5 (ACTION_BORROW) was executed, the status.needsSolvencyCheck flag was set to true.

However, by following with action=0, the internal _additionalCookAction function was called, which defaulted to returning status.needsSolvencyCheck = false, overwriting the check flag. This allowed the attacker to borrow 1,793,755 MIM tokens without triggering solvency verification. The exploit was executed across 6 different addresses using the action sequence [5, 0].

The stolen MIM was immediately swapped for 347.1 ETH via Uniswap V3 and deposited into Tornado Cash. Abracadabra paused all contracts following the incident and reportedly bought back MIM to cover the full amount.

Exploit tx:

https://etherscan.io/tx/0x842aae91…a9e5e6

Incident Report

Protocol / Project Abracadabra Spell
Date of Incident
Affected Chain(s) ethereum
Attack Technique Sequential State Manipulation Exploit / Other
Classification Protocol Logic / Stablecoin
Primary Source View Post-Mortem

Protocol Information

Protocol Type CDP
Smart Contract Language Solidity
Official Website abracadabra.money/
Protocol Twitter/X @MIM_Spell
Team Anonymous
Source Code Unverified

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 Deep understanding of sequential state manipulation exploit / other and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Abracadabra Spell's contract logic - root cause: protocol logic / stablecoin
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
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 Sequential State Manipulation Exploit / Other audit checklist and test coverage
Audited by Audit Report 1 — still lost $1.7M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to Abracadabra Spell, these are the critical security checks that could have prevented this incident (October 2025).

  • Verify all logic paths related to Sequential State Manipulation 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 Trial

Security Audit History

Proof-of-Concept Exploits

1 PoC available
poc-exploits - abracadabra spell

Sources & References

Learn to Prevent the Next Abracadabra Spell

The Abracadabra Spell 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