区块链 区块链技术 比特币公众号手机端

TITANX: The Tragedy of the Forced Investment Incident

liumuhui 11个月前 (11-12) 阅读数 169 #区块链

Attack Steps (based on the tx )

Prior to the attack, the price(TITANX/BLAZE) was 9,230,016.

The attacker borrowed 510,181,931,258 TITANX Token via flashloan from the Uniswap V3 pool, with the recipient being the Uniswap V2: TITANX-BLAZE pool. Consequently, the attacker transferred 18,000,000,000 TITANX Token to the Uniswap V2: TITANX-BLAZE pool.

Then the attacker swapped ~57,224.374 BLAZE tokens in the Uniswap V2: TITANX-BLAZE pool. At a result of this swap, price2(TITANX/BLAZE) was soared at 20,641,436, which was a 123.6% increase compared with price1;

image.png

The attacker invoked the swapTitanXForInfernoAndBurn function in the INFERNO contract by setting the amountBlazeMin argument to zero. The configuration was invalid slippage protection.

  1. The swapTitanXForInfernoAndBurn function was first invoked to swap 7,964,945,360 TITANX tokens to obtain 385.871 BLAZE tokens in the Uniswap V2: TITANX-BLAZE pool, where the spot price, known as price2, had already been manipulated.
  2. Subsequently, the function swapped the BLAZE tokens to receive 467,720,154 INF tokens in the Uniswap V3 pool.
  3. Finally, the InfernoBuyAndBurn contract burned the INF tokens and transferred 121,293,584 TITANX tokens as incentive to the attacker contract.

The price 3 (TITANX/BLAZE) declined to 9,315,737, which was still higher than the initial price (price 1).

The attacker exploited this unreasonable price to buy TITANX tokens and finally made a profit of 5,026,609,611 TITANX tokens, of which 121,293,584 were normal profits and the rest were sandwich attack profits.

Root Cause

  • The attacker exploited the vulnerability in the swapTitanXForInfernoAndBurn of the InfernoBuyAndBurn contract to force investment in the Uniswap pools.
  • Note that in this attack, "forced investment" means forcing the protocol to execute swaps at outrageous prices.

References

The intention of the swapTitanXForInfernoAndBurn function Buy & Burn | INFERNO

版权声明

本文仅代表作者观点,不代表区块链技术网立场。
本文系作者授权本站发表,未经许可,不得转载。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门