Rounding exploit spells trouble for Magic Internet Money

Add one more hack to Immunefi’s January report tally and you have over $130 million lost in January alone

article-image

MIM and Adobe Stock modified by Blockworks

share

As January winds to a close, it’s looking like a rough month for DeFi safety after a score of exploits. The latest victim was Abracadabra.money, a 2021 bull market darling and issuer of the Magic Internet Money (MIM) stablecoin.

The incident caused MIM to depeg severely to as low as $0.77 on Tuesday, before recovering somewhat to $0.93 at time of writing.

Web3 security firms PeckShield and CertiK first reported the exploit, which was confirmed by Abracadabra’s X account.

Loading Tweet..

Read more: The 5 biggest DeFi hacks of 2023

A hacker was able to steal at least $6.5 million in MIM on Ethereum. The thief’s wallet was funded via Tornado Cash and following the hack, stolen MIM tokens were swapped for ether (ETH) and transferred to a pair of new wallets containing 1800 ETH and 939 ETH respectively as of 12:30 pm ET. 

A CertiK spokesperson told Blockworks the hacker took advantage of a rounding bug in the protocol, specifically “cauldron v4” contracts which were deployed in early 2023.

Cauldrons is a DeFi dapp that facilitates lending and borrowing crypto assets. Borrowed funds are tracked in two ways: Elastic, representing the actual borrowed amount which can change due to interest rates, and Base, a more stable representation of the debt, used for internal calculations.

The suspect transaction shows a sequence of steps whereby a flawed calculation allowed the hacker to inflate their share of borrowed debt.

According to analysis by CertiK shared with Blockworks, the protocol’s “rebase library,” which should synchronize the elastic and base values, failed to account for discrepancies when the elastic value was zero but the base was not.

Essentially, the attacker tricked the protocol into underestimating the debt by repeatedly exploiting the rounding error, effectively paying back far less than they actually owed.

Tracking January DeFi exploits

Looking back on the first month of 2024, bug bounty and security service Immunefi found that prior to the Abracadabra exploit, over $126 million had already been lost in January across 19 incidents.

That’s a six-fold increase from a year ago and 2.8 times greater than the losses incurred in December 2023, Immunefi said.

Source: immunefi.com/research

Most of that is attributable to the first exploit that kicked off 2024, when more than $81 million was swiped from the Orbit Bridge.

Read more: $80M lost in first hack of 2024

Hackers most often targeted Ethereum (six incidents) and BNB Chain (five incidents). Arbitrum (three incidents) and Solana had two incidents, with one exploit each on Polygon, Optimism and Conflux Network, rounding out the list.

As the value of crypto assets increases, Immunefi expects that 2024 may see the largest nominal losses of any year to date.

Read more: DeFi hackers ring in New Year with 3 attacks in 5 days

Following the attack, moderators on the Abracadabra community Discord were seeking to allay the concerns of holders of MIM. Users spoke about their concerns that the extended divergence from its expected $1 value.

“MIM has been able to overcome difficult situations transparently in the past, [and] this is another obstacle but I am a buyer given the history of the team,” wrote one member.

Abracadabra.money and MIM were created by Daniele Sestagalli, a prominent, if not controversial figure in the crypto and DeFi space.

Sestagalli has also been behind DeFi protocols Wonderland and Popsicle Finance. His reputation also took a hit by association with Wonderland team member 0xSifu, who was identified as Michael Patryn of QuadrigaCX infamy. The revelation in January 2022 plunged Wonderland, built on Avalanche, into chaos.

Popsicle Finance was hacked for $20 million in August 2021. The project is technically still going, though it has never recovered from its 2021 heights and was subsequently rebranded to WAGMI, short for the crypto slogan We’re all Gonna Make It.


Get the news in your inbox. Explore Blockworks newsletters:

  • Blockworks Daily: The newsletter that helps thousands of investors understand crypto and the markets, by Byron Gilliam.
  • Empire: Start your morning with the top news and analysis to inform your day in crypto.
  • Forward Guidance: Reporting and analysis on the growing intersection of crypto and macroeconomics, policy and finance.
  • 0xResearch: Alpha directly in your inbox. Market highlights, data, degen trade ideas, governance updates, token performance and more.
  • Lightspeed: Built for Solana investors, developers and community members. The latest from one of crypto’s hottest networks.
  • The Drop: For crypto collectors and traders, covering apps, games, memes and more.
Tags

Upcoming Events

Javits Center North | 445 11th Ave

Tues - Thurs, March 18 - 20, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

Industry City | Brooklyn, NY

TUES - THURS, JUNE 24 - 26, 2025

Permissionless IV serves as the definitive gathering for crypto’s technical founders, developers, and builders to come together and create the future.If you’re ready to shape the future of crypto, Permissionless IV is where it happens.

Old Billingsgate

Mon - Wed, October 13 - 15, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

recent research

Unlocked by Template Presentation.jpg

Research

The Solana validator landscape has changed drastically over the past year. The chain now has 1,332 active validators with 380.9 million SOL staked (63.9% of supply) as of February 2025. Validator revenue had diversified beyond inflationary rewards (still making up 55%) to include Jito tips (30%), priority fees (24%), and base fees (<1%), in January, especially with the increased activity on Solana. Since then, issuance has become dominant again (76%), while Jito tips (14%), priority fees (9%), and base fees (less than 1%) have reduced in share of February 2025. There has been a strong shift towards non-inflationary revenue sources, which have become more central to validator economics as priority fees and off-chain blockspace auctions gain traction. Client diversity has also improved drastically, with implementations such as Agave, Jito-Solana, and Frankendancer already in use, and upcoming clients like Firedancer and Sig expected to further strengthen resilience and reduce reliance on a single codebase.

article-image

BWR analyst Carlos Gonzalez Campo explains the consequences of SOL inflation and transfers lost to “leaky buckets”

article-image

Empire co-host Santiago Santos makes the case that memecoins have actually helped push infra forward…just not in the way you think

article-image

A16z Crypto lists seven buckets for tokens and recommendations for how to regulate them, in a filing submitted to the SEC

article-image

New model aims to resolve trading inefficiencies with a single execution layer and market maker changes

article-image

Investors navigating BTC face short-term unpredictability, influence from other markets

article-image

The GENIUS Act aims to establish regulatory guidelines for stablecoins