Cointelegraph By Tom Mitchelhill
Osmosis, a decentralized exchange (DEX) built on the Cosmos network, was halted just before 3:00 am EST on Wednesday after attackers exploited a liquidity provider (LP) bug to the tune of roughly $5 million.
The bug was firstĀ identifiedĀ in a Reddit post on the official Cosmos Network page. The user, Straight-Hat3855, brought attention to a āserious problemā with Osmosis (OSMO) that allowed users to arbitrarily grow LPs by 50% simply by adding and removing liquidity.Ā The Reddit post was quickly removed, but not before malicious actors took advantage of the bug, which saw approximately $5 million removed from liquidity pools on the Osmosis exchange.
Following the exploit and the identification of the LP bug, the Osmosis exchange was halted at a block height of 4,713,064, according to an announcement from Osmosis block explorer Mintscan.
Explaining how the bug worked in a series of posts in the Osmosis Discord was project moderator RoboMcGobo, who detailed how the flaw allowed attackers to add liquidity to any Osmosis LP and then immediately withdraw it for a 150% return on their initial deposit: āEssentially, the function would give 50% too many LP shares for a join,ā RoboMcGobo wrote just after 4:00 pm on Wednesday, adding: āIf one should have gotten 10 LP shares, 15 would be achieved out.ā
RoboMcGobo explained that the bug was āexploited intentionally by a small number of usersā and āseemingly unintentionally by a few others.āĀ According to a Twitter thread from Osmosis, four attackers were responsible for 95% of the total exploit amount, with two of the attackers voluntarily stepping forward to return stolen funds.
Update:
– 4 individuals have been identified that account for 95%+ of realized exploit amount.
– 2 out of the 4 individuals has proactively expressed intent to return the exploited amount in full.
ā Osmosis (@osmosiszone) June 8, 2022
Roughly one hour following Osmosisā tweet concerning the attack, FireStake, a validator in the Cosmos ecosystem, posted a Twitter thread admitting that āa temporary lapse in good judgmentā saw two members of its team exploit the bug to the extent of roughly $2 million.
Firestake told their 1,700 Twitter followers that they were āthinking about [their] familyās futureā when they continued to exploit the bug. However, after admitting to āstressing through the nightā about the event, they decided to voluntarily return the funds and āset things straight.ā
Dear @osmosiszone community, many of you know about the Osmosis LP bug that occurred yesterday.
In disbelief of it being real, two members of @fire_stake started testing to see if the bug existed, testing grew into a temporary lapse in good judgment, and…
ā FireStake | Validator (@stake_fire) June 8, 2022
According to a post from Osmosis co-founder Sunny Aggarwal, the other two hackers responsible for the theft made a series of transactions to centralized exchanges, which Aggarwal believes will make it easier to track them down.
RoboMcGobo echoed Aggarwalās words in the projectās Discord, āFunds have been linked to CEX accounts. Law enforcement has been notified⦠weāre hopeful that the exploiters will do the right thing here so that aggressive action will not be necessary.ā