📈 Get daily crypto insights that make you smarter about your money

0VIX Protocol Drains 2 Million Dollars in Flash Loan Oracle Exploit on Polygon

The decentralized finance ecosystem on Polygon suffered a significant blow on April 28, 2023, as the lending protocol 0VIX fell victim to a sophisticated flash loan exploit that siphoned approximately 2 million dollars from its liquidity pools. The attack, which targeted a vulnerability in the protocol’s price oracle mechanism, marks yet another reminder of the risks inherent in DeFi’s rapidly evolving landscape.

TL;DR

  • 0VIX, a Polygon-based DeFi lending protocol, lost approximately 2 million dollars in a flash loan exploit on April 28, 2023
  • The attacker manipulated the vGHST oracle price by exploiting a flawed calculation in the VGHSTOracle contract
  • Stolen funds included roughly 1.45 million USDC, 0.58 million USDT, and 9,566 GHST tokens
  • The attacker bridged funds to Ethereum and transferred 760 ETH (approximately 1.42 million dollars) to Tornado Cash
  • 0VIX paused both its Polygon PoS and zkEVM markets as a precautionary measure

How the Attack Unfolded

The exploit centered on a vulnerability in the VGHSTOracle contract, which was responsible for pricing the vGHST token, a derivative of Aavegotchi’s GHST token. The oracle’s price calculation relied on the balance of GHST tokens held within the vGHST contract, creating an opening for manipulation through direct token transfers.

The attacker executed a multi-step strategy that began with multiple flash loans to borrow a significant quantity of tokens. They then deposited approximately 294,000 aGHST into a vault and minted 283,000 vGHST tokens. Using USDC as collateral, the attacker created leveraged debt positions denominated in vGHST.

The critical manipulation came next: by transferring mUSDC and vGHST tokens to their contract and using them to borrow ovGHST, the attacker artificially inflated the price of GHST within the oracle. With the manipulated price in place, the attacker proceeded to liquidate their own leveraged debt positions at the inflated valuation, extracting a significantly higher value than their actual collateral warranted.

Finally, the attacker repaid the flash loans and conducted asset swaps to convert the proceeds into USD and GHST tokens. The stolen funds were then bridged from Polygon to Ethereum via Stargate Finance, and 760 ETH worth approximately 1.42 million dollars at the time was transferred to Tornado Cash in an effort to obscure the trail.

Protocol Response and Fallout

The 0VIX team acknowledged the incident promptly, confirming that a flash loan exploit had occurred and immediately pausing both its Polygon PoS and zkEVM markets. The move halted all oToken transfers, minting, and liquidations across the platform. Notably, only the PoS market was directly affected by the exploit, with the zkEVM market pause being a precautionary measure.

The protocol’s total value locked plummeted from 6.42 million dollars to just 1.78 million dollars in the aftermath of the attack, according to data from DeFi Llama. The team sent an on-chain message to the exploiter offering a 125,000 dollar bounty for the return of the stolen funds and pledged not to involve law enforcement agencies if the attacker complied.

When the attacker failed to respond within a 30-minute window, 0VIX escalated the situation by coordinating with law enforcement agencies to track the exploiter. By May 4, the team announced that a portion of the stolen funds was being returned to the protocol, though full recovery details remained pending at the time.

The Oracle Problem in DeFi

This exploit follows a familiar pattern in DeFi security incidents. Oracle price manipulation attacks have plagued lending protocols for years, with similar vulnerabilities affecting platforms like Cream Finance and Hundred Finance in previous exploits. The core issue lies in relying on on-chain price feeds that can be manipulated through flash loans, transactions that borrow and repay massive amounts of capital within a single atomic transaction.

Security researchers from QuillAudits and Hacken both confirmed that the root cause was the vulnerable vGHST Oracle, which allowed the attacker to manipulate the price of the GHST token. The recommendation from security experts is clear: protocols should avoid listing tokens whose prices can be manipulated atomically, and implement price limits that can preempt exploitation attempts.

Why This Matters

The 0VIX exploit underscores the persistent security challenges facing DeFi protocols, particularly those operating on newer blockchain networks and scaling solutions. As the DeFi ecosystem expands across multiple chains and layer-2 networks, the attack surface for oracle manipulation grows proportionally. With Bitcoin trading at approximately 29,340 dollars and Ethereum at 1,893 dollars on the day of the attack, the broader crypto market was in a relatively stable period, a reminder that DeFi vulnerabilities can strike regardless of market conditions. The incident also highlights the growing sophistication of DeFi attackers, who continue to develop complex multi-step strategies that exploit subtle vulnerabilities in smart contract logic and oracle implementations.

Disclaimer: This article is for informational purposes only and does not constitute financial advice. Readers should conduct their own research before engaging with any DeFi protocol or cryptocurrency investment.

🌱 FOR BUSINESSES BitcoinsNews.com
Reach 100K+ Crypto Readers
Sponsored content, press releases, banner ads, and newsletter placements. Put your brand in front of Bitcoin's most engaged audience.

26 thoughts on “0VIX Protocol Drains 2 Million Dollars in Flash Loan Oracle Exploit on Polygon”

    1. defi_graveyard

      flashloan_cop not wrong. remember the mango markets exploit on solana around the same time? oracle attacks were the meta in 2023

      1. salt_mongoose_

        mango markets and 0VIX both used spot price oracles without any TWAP protection. how many more exploits before DeFi devs learn this lesson

        1. salt_mongoose_ TWAP has been standard since 2020. 0VIX shipping a spot price oracle in 2023 is negligence not an accident

          1. salt_and_pepper_

            twap_or_die TWAP was literally in every DeFi security best practices doc since 2021. shipping a spot price oracle two years later is not a mistake its a decision

          2. twap_or_die TWAP has been in every DeFi security guide since 2020. 0VIX shipping a spot price oracle in 2023 is a choice not a mistake

          3. smart_contract_eu_

            twap_or_die spot price oracle on a lending protocol in 2023 is beyond negligence. Chainlink was literally offering free price feeds on Polygon at that point

          4. twap_or_die chainlink was offering free feeds on polygon and 0VIX still chose a custom spot oracle. thats not a mistake thats hubris

          5. vghst_postmortem_

            twap_or_die chainlink was free on Polygon and they still chose a custom spot oracle. the hubris alone deserves its own postmortem

          6. vghst_postmortem_ Chainlink was free on Polygon and they still chose a custom spot oracle. the hubris alone deserves its own writeup

          7. chainlink_free_

            oracle_maxi_ Chainlink was literally free on Polygon and they chose a custom spot oracle. you cant blame DeFi devs for not learning when they ignore free tools

        1. 760 ETH through Tornado and the address is still tracked. chainalysis is probably just waiting for the mixer to get drained too

        2. tornado_watcher_

          Liam O. 760 ETH through Tornado in one go. the address was flagged before the mixer transaction even confirmed. lazy laundering

          1. tornado_watcher_ 760 ETH through Tornado and the address was flagged before the transaction confirmed. mixers dont help when your exploit is broadcast to the entire chain

  1. 760 ETH through tornado in one transaction and chainalysis still tracked it. imagine thinking a mixer saves you when your exploit address is already flagged

  2. 760 ETH through Tornado and chainalysis already had the address flagged. mixers dont help when your exploit transaction is public forever

  3. 9,566 GHST tokens stolen as part of a 2M exploit. including gaming tokens in a lending oracle was the design flaw nobody mentions

    1. Elias H. including gaming tokens like GHST in a lending oracle was the design flaw nobody flagged. lending protocols should never price exotic gaming derivatives

  4. 0VIX paused both Polygon PoS and zkEVM markets immediately. that response time is what saved this from being a 10M exploit instead of 2M

    1. Nikos V. pausing both markets saved maybe 8M in additional drainage. fast response but the vulnerability should never have shipped to production

  5. Chainlink was free on Polygon and they still chose a custom spot oracle. TWAP has been standard since 2020. this was a choice not a mistake

  6. flashloan_trace_

    760 ETH through Tornado in one go and chainalysis flagged the address before the mixer tx confirmed. laziest laundering attempt of 2023

Leave a Comment

Your email address will not be published. Required fields are marked *

BTC$64,896.00-0.1%ETH$1,916.63-0.1%SOL$76.35+1.3%BNB$603.55+1.3%XRP$1.04-0.2%ADA$0.1961-1.4%DOGE$0.0701-0.3%DOT$0.8088-1.5%AVAX$6.47-1.0%LINK$8.29-0.4%UNI$3.99+0.3%ATOM$1.37-1.3%LTC$46.21+1.5%ARB$0.0775-2.3%NEAR$1.61+0.5%FIL$0.7085-0.9%SUI$0.6911+0.1%BTC$64,896.00-0.1%ETH$1,916.63-0.1%SOL$76.35+1.3%BNB$603.55+1.3%XRP$1.04-0.2%ADA$0.1961-1.4%DOGE$0.0701-0.3%DOT$0.8088-1.5%AVAX$6.47-1.0%LINK$8.29-0.4%UNI$3.99+0.3%ATOM$1.37-1.3%LTC$46.21+1.5%ARB$0.0775-2.3%NEAR$1.61+0.5%FIL$0.7085-0.9%SUI$0.6911+0.1%
Scroll to Top