Dexible aggregator hacked for $2M via ‘selfSwap’ function

Share This Post

The buggy function was intended to allow users to provide their own routing information, but the code did not limit routers to a preapproved list.

The multichain exchange aggregator Dexible has been hit by an exploit, and $2 million worth of cryptocurrency has been lost as a result, according to a Feb. 17 post-mortem report released by the team on the project’s official Discord server.

As of 6:35 pm UTC on Feb. 17, the Dexible front end shows a popup warning about the hack whenever users navigate to it.

At 6:17 am UTC, the team reported that it had discovered “a potential hack on Dexible v2 contracts” and was investigating the issue. Approximately nine hours later, it released a second statement that it now knew “$2,047,635.17 was exploited from 17 trader addresses. 4 on mainnet, 13 on arbitrum.”

A post-mortem report was issued at 4:00 pm UTC as a PDF file and released on Discord, and the team said it was “actively working on a remediation plan.”

In the report, the team states that it had noticed something was wrong when one of its founders had $50,000 worth of crypto moved out of his wallet for reasons that were unknown at the time. After investigating, the team found that an attacker had used the app’s selfSwap function to move over $2 million worth of crypto from users that had previously authorized the app to move their tokens.

The selfSwap function allowed users to provide the address of a router and calldata associated with it to make a swap of one token for another. However, there was no list of preapproved routers written into the code. So, the attacker used this function to route a transaction from Dexible to each token contract, moving users’ tokens from their wallets into the attacker’s own smart contract. Because these malicious transactions were coming from Dexible, which users had already authorized to spend their tokens, the token contracts did not block the transactions.

Related: NFT influencer falls victim to cyberattack, loses $300K+ CryptoPunks

After receiving the tokens into their own smart contract, the attacker withdrew the coins through Tornado Cash into unknown BNB (BNB) wallets.

Dexible has paused its contracts and urged users to revoke token authorizations for them.

The common practice of authorizing token approvals for large amounts has sometimes led to losses for crypto users due to buggy or outright malicious contracts, leading some experts to warn users to revoke approvals on a regular basis. The front ends for most Web3 apps do not directly allow users to edit the amount of tokens approved, so users often lose the full balance of their tokens if an app turns out to have a security flaw. MetaMask and other wallets have tried to fix this problem by allowing users to edit token approvals at the wallet confirmation step, but many crypto users are still unaware of the risk of not using this feature.

Read Entire Article
spot_img
- Advertisement -spot_img

Related Posts

Dogecoin Large Transactions Surge 41% With 35% Uptick In Daily Addresses, Will Price Follow?

Dogecoin has seen a significant uptick in activity over the past few hours as its price begins to rebound following a correction over the weekend Over the last 24 hours, there has been a notable

MicroStrategy to Raise $1.75 Billion to Expand Bitcoin Holdings

The post MicroStrategy to Raise $175 Billion to Expand Bitcoin Holdings appeared first on Coinpedia Fintech News Following a significant $46 billion Bitcoin (BTC) purchase, MicroStrategy’s (MSTR)

Michael Saylor’s Poll: Most Believe Bitcoin Will Hit $100K by New Year

Michael Saylor’s poll ignites excitement as 856% of voters predict bitcoin smashing $100K by year’s end, fueled by record highs and massive Microstrategy buys Bitcoin $100K Target

Binance launches yield-bearing stablecoin BFUSD with roughly 20% APY

Binance has launched BFUSD, a yield-bearing stablecoin for futures and perpetuals traders, according to a Nov 18 announcement BFUSD provides an annual percentage yield (APY) of approximately 1955%,

Is The Dogecoin Price Rally Over? Analyst Reveals Why There’s Still Room To Run

The Dogecoin price correction extended throughout the weekend, teasing what might be the steady end of a powerful rally in the previous four weeks The popular meme-based cryptocurrency dropped to a

Coinbase CEO Advocates Ending Individual Income Tax Entirely, Shifting Burden to Businesses

Coinbase CEO Brian Armstrong wants to scrap income taxes entirely, dumping the 150,000-page tax code and shifting the chaos to businesses Coinbase’s CEO Challenges America’s Tax Code Chaos