Mobius Token Exploit Postmortem: How a Proxy Logic Bug Enabled a $2.15M Drain

@count-sum
@count-sum
Security Researcher

At HackenProof, we believe that some of the most valuable security knowledge is created inside the hacker community itself. This belief is reflected in our ongoing series of guest articles, where security researchers from our community share practical insights, practical knowledge, and real-world lessons from their work in smart contract security, Web3 development, and bug bounty research. By publishing hacker-authored content, we aim to make expert-level security knowledge more accessible and to support continuous learning across the broader Web3 security ecosystem.

We regularly curate and publish the strongest technical articles based on their educational value, technical depth, and relevance to real security challenges. Authors whose work is published on the HackenProof blog receive the Star Author achievement, recognizing their contribution to knowledge sharing and community growth.

Read the article, explore the ideas, and share your thoughts with the community — and if you have expertise to share, this could be your first step toward becoming our next Star Author.

Background and Scope

This article was written by @count-sum, a Web3 security researcher from Romania and a member of the HackenProof community since September 28, 2025. Despite joining relatively recently, he has already built a strong track record on the platform, currently ranking #85 on the HackenProof leaderboard with 11 paid vulnerability reports to his name. His work focuses on analyzing real-world smart contract exploits, breaking down complex attack paths, and translating on-chain incidents into practical lessons for builders and security researchers.

In this article, count-sum examines the Mobius Token exploit on Binance Smart Chain, where a seemingly minor accounting mistake in a proxy contract allowed an attacker to mint millions of tokens and drain over $2.15 million in liquidity. Through a step-by-step reconstruction of the attack, he shows how small miscalculations in price normalization and decimals handling can cascade into catastrophic failures. The analysis highlights how a single overlooked line of code can be weaponized into a full-scale DeFi exploit — and why rigorous validation, testing, and audits remain essential safeguards for any protocol handling real value.

Editor’s note: This article was originally published by the author on Medium and is shared here with permission as part of our community guest article series.

Foreword

On May 11, 2025, the Mobius Token (MBU) contract on Binance Smart Chain (BSC) was exploited in a critical attack.

The vulnerability stemmed from a misconfigured proxy contract that allowed the attacker to mint an inflated supply of MBU tokens and dump them into PancakeSwap liquidity pools.

Starting with just 0.001 BNB, the attacker manipulated the proxy’s accounting logic to generate millions of MBU tokens at essentially no cost. These tokens were then swapped into stablecoins (BUSD), and the stolen $2.15M was quickly laundered through Tornado Cash, making recovery impossible.

Vulnerable Code

The project, which had launched only days before the attack, included the following function to calculate token prices for the BNB/USDT pair:

code snippet

Why This Was Dangerous

At first glance, the logic seems straightforward, but several critical issues made it exploitable:

  • Reliance on spot prices — no TWAP (time-weighted average price) or oracle safeguards.
  • No liquidity checks — price calculations ignored whether pools had sufficient depth.
  • Potential mishandling of non-standard decimals (e.g., USDT with 6 decimals).
  • Extra 1e18 multiplier in the final step — this was the fatal flaw, inflating returned values by orders of magnitude.

This seemingly minor miscalculation allowed the attacker to deposit 0.001 BNB and mint a disproportionate supply of MBU tokens, which were then dumped against the BUSD-T PancakeSwap pool, draining approximately $2.15M in stablecoins.

The full transaction can be observed here:

🔗 BlockSec Explorer — Exploit Transaction

Mobius Token exploit on BSC: proxy contract misconfiguration allowed an attacker to mint millions of MBU tokens and drain $2.15M from PancakeSwap liquidity pools.
Mobius Token Exploit Postmortem: How a Proxy Logic Bug Enabled a $2.15M Drain

As shown in the trace, the attacker called the deposit function on the vulnerable proxy (0x95e9…ERC1967Proxy).

This call invoked the flawed getBNBPriceInUSDT function, which miscalculated the token valuation and minted excessive MBU tokens.

The inflated tokens were then swapped into BUSD via PancakeSwap, draining liquidity from the pool.

Mobius Token exploit on BSC: proxy contract misconfiguration allowed an attacker to mint millions of MBU tokens and drain $2.15M from PancakeSwap liquidity pools.

Key On-Chain References

Attack Breakdown

The exploit can be summarized in four stages:

1.Initial Funding

  • The attacker funded their address via Tornado Cash to ensure anonymity.

2. Proxy Abuse

  • Deposited a small amount of WBNB (~0.001 BNB) into the vulnerable Mobius proxy contract.
  • Due to a logic flaw in the proxy’s accounting, this deposit credited the attacker with a vastly inflated number of MBU tokens.

3. Token Dump

  • The attacker approved PancakeSwap’s router for unlimited MBU token transfers.
  • They swapped roughly 30,000,000 MBU for BUSD using swapExactTokensForTokensSupportingFeeOnTransferTokens.

4. Profit Extraction & Laundering

  • The obtained BUSD was transferred back to the attacker’s externally owned account (EOA).
  • Additional calls to the BlockRazor contract obfuscated transaction traces, likely paying MEV relays for protected execution.
  • Funds were eventually siphoned through Tornado Cash.

Root Cause Analysis

The vulnerability stemmed from broken accounting logic in the proxy contract.

  • When users deposited WBNB, the proxy called getBNBPriceInUSDT() to value the deposit.
  • The function incorrectly applied decimals twice (x * 10**18 applied redundantly).
  • As a result, the contract credited users with 10¹⁸ times more tokens than intended.

This flaw essentially allowed the attacker to mint tokens at a massive discount, bypassing any real economic cost.

Damage Assessment

  • Stolen Amount: ~30 million MBU tokens
  • PancakeSwap liquidity pools were drained.
  • MBU holders faced an immediate price collapse.

The exploit effectively rendered MBU liquidity worthless.

Immediate Response

  • Mobius attempted to pause affected contracts.
  • Community alerts spread quickly, identifying the exploit as a proxy misconfiguration.
  • Centralized exchanges were notified to blacklist addresses, though stolen funds were already laundered.

Lessons Learned

The Mobius exploit is a textbook reminder of how small logical errors in smart contracts can have catastrophic financial consequences. In this case, a single miscalculation — an unnecessary 1e18 multiplier — inflated token valuations and allowed unlimited minting of MBU.

Key takeaways:

  • Audits are essentialThis vulnerability was trivial to detect and would likely have been caught in even a basic smart contract audit. Launching an unaudited token contract exposed users and liquidity providers to unnecessary risk.
  • Validate core assumptionsCritical operations like minting and deposit accounting must include sanity checks. For example, mint amounts should always be bounded by expected ranges.
  • Don’t rely on raw spot pricesPrice oracles based purely on liquidity pool reserves are easily manipulated. Protocols should use time-weighted averages or trusted oracle frameworks to prevent distorted valuations.
  • Implement safeguardsCaps on maximum mintable amounts, liquidity checks, and invariant validations can act as last lines of defense, catching logic errors before they escalate.
  • Testing mattersUnit and integration tests that simulate edge cases (low liquidity, unusual decimals, tiny deposits) would likely have revealed the miscalculation before deployment.

Conclusion

The Mobius Token hack demonstrates how a single oversight in protocol logic can be weaponized into a multi-million dollar exploit. While the attack was not especially sophisticated, the consequences were severe: inflated token supply, drained liquidity pools, and permanent losses for holders.

Precision in mathematical calculations, especially around decimals and price normalization, is non-negotiable in DeFi. Projects must:

  • Rigorously test all minting and valuation functions.
  • Enforce strict validation and caps.
  • Undergo comprehensive third-party audits before launch.

Ultimately, the exploit underscores a simple truth: in DeFi, even the smallest arithmetic mistake can cascade into systemic failure. Careful design, thorough audits, and proactive monitoring remain the only effective defense against these types of attacks.

Share article:

Read more on HackenProof Blog