Attackers drain $5 million from Osmosis; FireStake Validator admits to exploiting LP bug

1 year ago

On June 7, idiosyncratic posted a Reddit thread that was aboriginal deleted by the forum’s moderator. The thread contained a superior assertion — the Osmosis web had a bug that allowed liquidity providers to gain an other 50% erstwhile adding and withdrawing liquidity.

Osmosis (OSMO) is simply a blockchain successful the Cosmos ecosystem that offers a decentralized speech and wallet.

The assertion appeared improbable until the web was halted for exigency maintenance.

Hello @osmosiszone friends. As of artifact #4713064 the Osmosis concatenation has been halted for exigency maintenance.

At this clip the Osmosis DEX and Wallet are inoperable, until repairs are completed.

🧪Please basal by arsenic Devs enactment to get america backmost on.

🦙🧪EmperorOsmo(Hathor Nodes)🧪🦙 (@Flowslikeosmo) June 8, 2022

Although the Osmosis squad did not admit an exploit astatine the time, the halt came astir aft a fewer attackers drained astir $5 million.

Liquidity pools were NOT "completely drained".

Devs are fixing the bug, scoping the size of losses (likely successful the scope of ~$5M), and moving connected recovery.

More info to come. https://t.co/WOu7MMgSUM

— Osmosis 🧪 (@osmosiszone) June 8, 2022

The Osmosis squad has identified the bug and developed a spot that is being tested earlier deployment. Developers are inactive moving connected restarting the network.

Update: The bug has been identified and a spot written.

More investigating is underway earlier validators are recommended to coordinate a restart.

Full bug study and enactment program for much thorough and due extremity to extremity investigating of concatenation upgrades to travel successful coming days. https://t.co/DjJMOEQxrT

— Osmosis 🧪 (@osmosiszone) June 8, 2022

So this is however the attackers managed to exploit the network, arsenic shown by on-chain activity:

A Twitter idiosyncratic pointed retired successful a thread that 1 of the attackers added liquidity successful the signifier of USD Coin (USDC) and OSMO. The attacker past received GAMM LP tokens successful return, which represented their stock successful the pool. These perpetrators instantly withdrew the GAMM LP tokens, thereby gaining 50% other than the magnitude of USDC and OSMO that had been added arsenic liquidity.

First off, seemingly a subredditer called this retired a portion backmost – truthful props to them.

➼ So the wallet (osmo1hq) is the exploiter.

First helium provides Liquidity successful the signifier of $USDC (I verified this successful the root code) + $OSMO

He past recieves $GAMM LP tokens successful return. pic.twitter.com/K3JzrDRPMN

— Andeh #OnChain (@0xLosingMoney) June 8, 2022

The perpetrator past swapped the OSMO tokens for ATOM and sent them to different wallets. This aforesaid process was repeated implicit and implicit again — each clip the attacker gained 50% much tokens.

Most of the proceeds successful OSMO were swapped for ATOM and transferred to a wallet that contains $9 cardinal worthy of ATOM tokens, the Twitter thread said. However, this wallet did not see the USDC tokens the attacker gained by exploiting the bug — the USDC tokens were neither swapped nor transferred, the thread added.

Once he's had his fun,

➼ He sends the $ATOM retired to a concatenation of different wallets.

It's hard to archer connected the https://t.co/o02L0T5QtQ scanner however overmuch successful full it was, but I tracked the wallets and… pic.twitter.com/dchu2pDgQG

— Andeh #OnChain (@0xLosingMoney) June 8, 2022

Osmosis identifies attackers; FireStake comes forth

Four attackers person been identified arsenic the cardinal perpetrators who stole implicit 95% of the exploited amount, according to a Twitter thread by Osmosis. Two retired of the 4 attackers person volunteered to instrumentality the implicit stolen funds. The different 2 person transactions to and from centralized exchanges, which person been alerted to place the perpetrators and retrieve the funds.

Update:

– 4 individuals person been identified that relationship for 95%+ of realized exploit amount.

– 2 retired of the 4 individuals has proactively expressed intent to instrumentality the exploited magnitude successful full.

— Osmosis 🧪 (@osmosiszone) June 8, 2022

Barely an hr aft Osmosis’ Tweet regarding the attackers, FireStake — a validator successful the Cosmos ecosystem — came guardant successful a Tweet and admitted to exploiting the LP bug but noted that they are trying to “set things right” and moving with the Osmosis squad to instrumentality the exploited funds.

Dear @osmosiszone community, galore of you cognize astir the Osmosis LP bug that occurred yesterday.

In disbelief of it being real, 2 members of @fire_stake started investigating to spot if the bug existed, investigating grew into a impermanent lapse successful bully judgment, and…

— FireStake | Validator (@stake_fire) June 8, 2022

in the process, we managed to person $226 USD to ~$2M. We were reasoning astir our family's future, and not the aboriginal of our community.

Shortly aft doing so, we stressed passim the nighttime astir however we tin acceptable things right. We’re presently moving with the Osmosis team…

— FireStake | Validator (@stake_fire) June 8, 2022

to instrumentality the funds arsenic soon arsenic possible. We’re besides moving with the Osmosis squad to promote anyone other who took vantage of this concern to delight travel guardant and instrumentality funds.

You’re invited to travel to us, and we tin assistance enactment arsenic a liaison. We request to marque this right.

— FireStake | Validator (@stake_fire) June 8, 2022

The station Attackers drain $5 cardinal from Osmosis; FireStake Validator admits to exploiting LP bug appeared archetypal connected CryptoSlate.

View source