国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
background
Related information
Attack Analysis
Project repair situation
MistTrack Analysis
Summarize
Home web3.0 Cetus was stolen $230 million, analyzing attack methods and capital transfers

Cetus was stolen $230 million, analyzing attack methods and capital transfers

May 26, 2025 pm 07:27 PM
git tool ai Why usdt

Sui officially issued a statement saying that it supports Cetus Protocol's efforts to recover stolen funds and encourage users with relevant information to provide clues. Our priority remains to protect the community and support actively resolving theft incidents. Previous news, Sui ecological liquidity platform Cetus offered a reward of $5 million with the support of Inca Digital and the funding of the Sui Foundation to seek hacker-related clues.

So, how did Cetus get stolen? What is the attack method? How to transfer funds? Let’s take a look with the editor of Script Home!

background

On May 22, according to community news, Cetus, a liquidity provider on SUI ecosystem, was suspected to be attacked, and the depth of the liquidity pool has dropped significantly. Several token trading pairs on Cetus fell, with an estimated loss of more than US$230 million. Cetus later issued an announcement saying: "A incident was detected in our agreement. For security reasons, the smart contract has been temporarily suspended. Currently, the team is investigating the incident. We will issue further investigation statements soon."

After the incident, the Slow Fog Security Team intervened in the analysis as soon as possible and issued a safety reminder. The following is a detailed analysis of the attack methods and capital transfer situation.

Cetus was stolen $230 million, analyzing attack methods and capital transfers

 (https://x.com/CetusProtocol/status/1925515662346404024)

One of the attack transactions:

https://suiscan.xyz/mainnet/tx/DVMG3B2kocLEnVMDuQzTYRgjwuuFSfciawPvXXheB3x

Attacker's address:

0xe28b50cef1d633ea43d3296a3f6b67ff0312a5f1a99f0af753c85b8b5de8ff06

The attacked pool address:

0x871d8a227114f375170f149f7e9d45be822dd003eba225e83c05ac80828596bc

Tokens involved:

haSUI / SUI

Attack Analysis

The core of this incident is that the attacker carefully constructs parameters so that the overflow occurs but can bypass detection. Finally, he can exchange a very small amount of token token to exchange for huge liquid assets. The following are the specific steps analysis:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

1. The attacker first borrowed 10,024,321.28 haSUIs through Lightning Loan, causing the pool price to plummet from 18,956,530,795,606,879,104 to 18,425,720,184762,886, with a price decline of 99.90%.

Cetus was stolen $230 million, analyzing attack methods and capital transfers

2. The attacker carefully selected a very narrow price range to open a liquidity position:

  • Tick ??Lowest Limit: 300000 (Price: 60,257,519,765,924,248,467,716,150)
  • Tick ??cap: 300200 (Price: 60,863,087,478,126,617,965,993,239)
  • Price range width: only 1.00496621%

3. Then is the core of this attack. The attacker stated that he would add 10,365,647,984,364,446,732,462,244,378,333,008 units of huge liquidity, but due to the vulnerability, the system only charged 1 token A.

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Let’s analyze why an attacker can exchange 1 token for huge liquidity. The core reason is that there is an overflow detection bypass vulnerability in checked_shlw in the get_delta_a function. This is what the attacker takes advantage of, causing severe deviations in the system when calculating how many haSUIs it actually needs to be added. Since the overflow was not detected, the system misjudged the number of required haSUIs, resulting in the attacker being able to exchange a large number of liquid assets with only a very small token, thus realizing the attack.

When the system calculates how much haSUI is needed to add such huge liquidity:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

The key here is that the implementation of the checked_shlw function has serious flaws. In fact, any input value less than 0xffffffffffffffff

Cetus was stolen $230 million, analyzing attack methods and capital transfers

  • Error mask: 0xffffffffffffffffffff
  • Almost all inputs are smaller than this mask, bypassing overflow detection
  • The real problem: When n >= 2^192, n

The intermediate value liquidity * sqrt_price_diff =6277101735386680763835789423207666908085499738337898853712:

  • Less than the error mask, bypassing overflow detection
  • However, after shifting left by 64 bits, the maximum value of u256 will be exceeded, resulting in the excess being truncated.
  • The final calculation result is about 1, but since it is rounded upward, the calculation of quotient is equal to 1

Cetus was stolen $230 million, analyzing attack methods and capital transfers

4. Finally, the attacker removes liquidity and obtains huge token returns:

  • First removal: Obtain 10,024,321.28 haSUI
  • Second removal: Obtain 1 haSUI
  • Third removal: Obtain 10,024,321.28 haSUI

Cetus was stolen $230 million, analyzing attack methods and capital transfers

5. The attacker returned the flash loan, with a net profit of approximately 10,024,321.28 haSUI and 5,765,124.79 SUI, and the attack was completed.

Project repair situation

After the attack, Cetus released a fix patch. For specific repair codes, please refer to: https://github.com/CetusProtocol/integer-mate/pull/7/files#diff-c04eb6ebebbabb80342cd953bc63925e1c1cdc7ae1fb572f4aad240288a69409.

The fixed checked_shlw function is as follows:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Repair instructions:

  • Correct the wrong mask 0xffffffffffffffffffff
  • Correct the judgment condition from n > mask to n >= mask
  • Ensure that when shifting the left 64 bits may cause overflow, the overflow flag can be detected correctly and returned

MistTrack Analysis

According to analysis, the attacker 0xe28b50cef1d633ea43d3296a3f6b67ff0312a5f1a99f0af753c85b8b5de8ff06 made a profit of approximately US$230 million, including SUI, vSUI, USDC and other assets.

Cetus was stolen $230 million, analyzing attack methods and capital transfers

We found that the attacker had Gas Fee ready two days ago and then made a try before the attack, but failed:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

After making a profit, the attacker will add some of the funds to

USDC, SOL, and suiETH cross-chain to EVM address 0x89012a55cd6b88e407c9d4ae9b3425f55924919b:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Among them, 5.2341 WBNB cross-chain to the BSC address 0x89012a55cd6b88e407c9d4ae9b3425f55924919b:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Then the attacker will make the value

$10 million in assets deposited into Suilend:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

The attacker also transferred 24,022,896 SUI to the new address 0xcd8962dad278d8b50fa0f9eb0186bfa4cbdecc6d59377214c88d0286a0ac9562, which has not been transferred out yet:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Fortunately, according to Cetus, the $162 million stolen funds on SUI have been successfully frozen under cooperation with the SUI Foundation and other ecosystem members.

Cetus was stolen $230 million, analyzing attack methods and capital transfers

 (https://x.com/CetusProtocol/status/1925567348586815622)

Next, we use the on-chain anti-money laundering and tracking tool MistTrack to analyze the address 0x89012a55cd6b88e407c9d4ae9b3425f55924919b on EVM.

This address received 5.2319 BNB on BSC and has not been transferred out yet:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

The address received 3,000 USDT, 40.88 million USDC, 1,771 SOL and 8,130.4 ETH on Ethereum.

Among them, USDT, USDC and SOL are exchanged for ETH through CoW Swap, ParaSwap, etc.:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Cetus was stolen $230 million, analyzing attack methods and capital transfers

Next, the address transfers 20,000 ETH to address 0x0251536bfcf144b88e1afa8fe60184ffdb4caf16, and has not yet been transferred out:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

The current balance of this address on Ethereum is 3,244 ETH:

Cetus was stolen $230 million, analyzing attack methods and capital transfers

MistTrack has added the above related addresses to the malicious address library. At the same time, we will continue to monitor the address balance.

Summarize

This attack demonstrates the power of a mathematical overflow vulnerability. The attacker uses precise calculations to select specific parameters, and uses the flaws of the checked_shlw function to obtain billions of liquidity at the cost of 1 token. This is an extremely sophisticated mathematical attack, and the Slow Fog Security Team recommends developers to strictly verify the boundary conditions of all mathematical functions in smart contract development.

The above is the detailed content of Cetus was stolen $230 million, analyzing attack methods and capital transfers. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Bitcoin price quote viewing software app to view free quote websites in real time Bitcoin price quote viewing software app to view free quote websites in real time Jul 17, 2025 pm 06:45 PM

This article recommends 6 mainstream Bitcoin price and market viewing tools. 1. Binance provides real-time and accurate data and rich trading functions, suitable for all kinds of users; 2. OKX has a friendly interface and perfect charts, suitable for technical analysis users; 3. Huobi (HTX) data is stable and reliable, and simple and intuitive; 4. Gate.io has rich currency, suitable for users who track a large number of altcoins at the same time; 5. TradingView aggregates multi-exchange data, with powerful chart and technical analysis functions; 6. CoinMarketCap provides overall market performance data, suitable for understanding the macro market of Bitcoin.

Coinan Exchange Exchange official website Chinese App download. Ranked the top ten.cc Coinan Exchange Exchange official website Chinese App download. Ranked the top ten.cc Jul 17, 2025 pm 07:00 PM

Binance is an internationally renowned blockchain digital asset trading platform founded by Canadian Chinese engineer Zhao Changpeng, which provides diversified services such as digital currency trading, blockchain education, and project incubation.

How to set stop loss and take profit? Practical skills for risk control of cryptocurrency transactions How to set stop loss and take profit? Practical skills for risk control of cryptocurrency transactions Jul 17, 2025 pm 07:09 PM

In cryptocurrency trading, stop loss and take profit are the core tools of risk control. 1. Stop loss is used to automatically sell when the price falls to the preset point to prevent the loss from expanding; 2. Take-profit is used to automatically sell when the price rises to the target point and lock in profits; 3. The stop loss can be set using the technical support level method, the fixed percentage method or the volatility reference method; 4. Setting the stop profit can be based on the risk-return ratio method or the key resistance level method; 5. Advanced skills include moving stop loss and batch take-profit to dynamically protect profits and balance risks, thereby achieving long-term and stable trading performance.

Where can I see the Bitcoin market trend? Bitcoin market website recommendation Where can I see the Bitcoin market trend? Bitcoin market website recommendation Jul 17, 2025 pm 09:21 PM

Understanding Bitcoin’s real-time price trends is crucial to participating in the cryptocurrency market. This will not only help you make smarter investment decisions, but will also allow you to seize market opportunities in a timely manner and avoid potential risks. By analyzing historical data and current trends, you can have a preliminary judgment on the future price direction. This article will recommend some commonly used market analysis websites for you. We will focus on how to use these websites for market analysis to help you better understand the reasons and trends of Bitcoin price fluctuations.

What are the cryptocurrency market websites? Recommended virtual currency market websites What are the cryptocurrency market websites? Recommended virtual currency market websites Jul 17, 2025 pm 09:30 PM

In the ever-changing virtual currency market, timely and accurate market data is crucial. The free market website provides investors with a convenient way to understand key information such as price fluctuations, trading volume, and market value changes of various digital assets in real time. These platforms usually aggregate data from multiple exchanges, and users can get a comprehensive market overview without switching between exchanges, which greatly reduces the threshold for ordinary investors to obtain information.

Why do experts in the currency circle recommend that novices buy BTC or ETH first? Why do experts in the currency circle recommend that novices buy BTC or ETH first? Jul 17, 2025 pm 10:21 PM

In the currency circle, many veteran players will recommend that novices start with Bitcoin (BTC) or Ethereum (ETH). This is not a casual statement, but a consensus that has been verified by many years of markets.

In what directions will the digital product trading platform develop in the future and what impact will it have on the industry? In what directions will the digital product trading platform develop in the future and what impact will it have on the industry? Jul 17, 2025 pm 11:15 PM

The digital product trading platform will present three core trends and four major industries in the future. 1. Technology-driven upgrades, blockchain, NFT and AI will improve copyright protection and transaction efficiency, and the market size may exceed US$20 billion in 2025; 2. Transaction categories will expand to virtual real estate, digital art and other fields, and the meta-universe-related assets will increase by 50% year-on-year; 3. Platform model innovation, "Transaction Creation" hybrid platform and subscription system will emerge, and Adobe subscription revenue will account for more than 60%. In terms of industry influence, 1. Reshape the industrial structure, the platform opens up the entire industrial chain, and lowers the industry threshold by 30%-40%; 2. Change in value distribution, smart contracts support creators to continue to share, and the secondary sales of music NFTs is up to 10%; 3. Improve the regulatory system, EU DS

The top 10 most recent version of the top 10 digital currency trading platforms The top 10 most recent version of the top 10 digital currency trading platforms Jul 17, 2025 pm 06:18 PM

The latest rankings of the top ten formal digital currency trading platforms are as follows: 1. Binance ranks first with the first trading volume, rich currency selection and comprehensive ecosystem; 2. OKX follows closely with its powerful trading engine and the Web3 ecosystem integration; 3. Coinbase has become the first choice for European and American users for its high security and compliance; 4. Kraken is favored by institutions for its long history and excellent security; 5. KuCoin is called the "Treasure Hunters Paradise" for launching a large number of potential altcoins; 6. Bybit is known for its derivative trading experience, and has now become a comprehensive exchange; 7. Gate.io has many online currencies and is quickly updated, suitable for veteran players; 8. Huob