|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nachrichtenartikel zu Kryptowährungen
Flash Loan Attack Drains 500K USD From CloberDEX on Base
Dec 26, 2024 at 09:05 am

Recently, an on-chain attack was detected against CloberDEX, a project on Base. The attacker gained about 133 ETH, or about 500,000 USD, through this attack.
The attacked project is CloberDEX, and its main functions are as follows: open a new trading pool containing trading pairs A to B and B to A, and each trading pair also contains a preset trading strategy; mint is to add liquidity to the trading pair and obtain LP Token; burn is to destroy LP Token to obtain the corresponding currency.
Let's take a look at the attack process:
First, the attacker borrowed 267 WETH from Morpho Blue using flashloan.
Then, the attacker used open to open two trading pairs on CloberDEX, namely Token/WETH and WETH/Token, where Token is a contract deployed by the attacker himself.
Then, the attacker used mint to transfer 267 WETH and 267 Token to the newly opened trading pair to add liquidity and obtain LP Token.
So far, there is no problem. Finally, the attacker uses burn to destroy the LP Token just obtained. Let's take a look at the specific implementation of burn;
The control flow goes to the lock function. Similarly, let's take a look at the specific implementation of lock;
As you can see, the lock function passes bytes caldata data to the lockAcquired function. Let's continue to look at the implementation of this function.
We found this line of code
We can see that the function called by the code is determined by data. The first four bytes of data are the signature of _burn, so burn essentially calls _burn.
We can see that _burn calls pool.strategy.burnHook(msg.sender, key, burnAmount,supply) again, and the processing of the pool's reserver comes after this code. So, the problem lies here. The address of the strategy contract of the pool corresponding to the trading pair can be controlled by the attacker. In this attack, the attacker wrote the address as his own attack contract address: 0x32fb1bedd95bf78ca2c6943ae5aeaeaafc0d97c1 .
When the contract process reaches the BurnHook of the attacking contract, burn is called again to complete the reentrancy attack.
The attacker took out 264 WETH and 133 WETH from the CloberDEX contract through this vulnerability, and made a profit of 133.7 ETH after repaying the flashloan loan, which is about 500,000 USD.
The main cause of this vulnerability is that the CloberDEX project contract did not perform reentrancy detection and protection in the code for obtaining and destroying LP Tokens, and the state variables were updated after the contract was called, which eventually led to the attacker using the reentry vulnerability to empty the project's WETH. It is recommended that the project party should conduct multi-party verification when designing the economic model, price calculation mechanism and code operation logic, and try to select multiple audit companies for cross-audit when auditing the contract before it goes online.
Haftungsausschluss:info@kdj.com
Die bereitgestellten Informationen stellen keine Handelsberatung dar. kdj.com übernimmt keine Verantwortung für Investitionen, die auf der Grundlage der in diesem Artikel bereitgestellten Informationen getätigt werden. Kryptowährungen sind sehr volatil und es wird dringend empfohlen, nach gründlicher Recherche mit Vorsicht zu investieren!
Wenn Sie glauben, dass der auf dieser Website verwendete Inhalt Ihr Urheberrecht verletzt, kontaktieren Sie uns bitte umgehend (info@kdj.com) und wir werden ihn umgehend löschen.
-
- Fortschritte im DEATH BETS Act: Senat will Prognosemarktverträge zu Krieg, Terrorismus und Tod verbieten
- Nov 23, 2026 at 04:05 am
- Der US-Senat hat den DEATH BETS Act verabschiedet, der darauf abzielt, Prognosemarktverträge im Zusammenhang mit Krieg, Terrorismus und Tod zu verbieten, und den Gesetzentwurf dem Repräsentantenhaus zur weiteren Prüfung vorgelegt.
-
- Ripples XRP-Escrow: Auspacken des Systems und der Community-Anforderungen für einen Burn
- Nov 23, 2026 at 04:05 am
- Ein tiefer Einblick in das XRP-Treuhandkonto von Ripple, die Erkundung seiner Mechanismen, seiner Geschichte und der neuesten Community-Forderung nach einer deutlichen Reduzierung des Angebots.
-
- Top-Analyst untersucht die Geduld von XRP-Inhabern: Krypto-Asset-Analyse enthüllt Einblicke in den Marktzyklus
- Nov 22, 2026 at 04:05 pm
- Ein Top-Analyst taucht tief in die Psychologie und Marktzyklen von XRP-Inhabern ein und bietet wichtige Krypto-Asset-Analysen zur Bewältigung potenzieller Preissteigerungen und -rückgänge.
-
- Cysic-Bridge-Exploit: Aufdeckung der unautorisierten CYS-Token-Prägung und Reaktion der Cysic Foundation
- Nov 22, 2026 at 04:05 pm
- Die Cysic Foundation ist mit einem raffinierten Bridge-Exploit konfrontiert, der zu 10 Millionen nicht autorisierten CYS-Token-Prägungen führt. Dies führt zu einer schnellen Abhilfe, wirft jedoch Fragen zu künftigen Schutzmaßnahmen und Entschädigungen auf.
-
- XRP-Preisprognose: XRP erobert 0,99 US-Dollar zurück, inmitten von Kanalbrüchen und wechselnden Marktstimmungen
- Nov 22, 2026 at 12:05 pm
- Eine Analyse der jüngsten XRP-Preisbewegungen mit Schwerpunkt auf der möglichen Rückgewinnung von 0,99 $, einem kritischen Kanaldurchbruch und breiteren Marktindikatoren.
-
- Goldpreistrends und Analyse des Bitcoin-Rückgangs: Ein Showdown zum Wertaufbewahrungsmittel
- Nov 22, 2026 at 08:05 am
- Der Goldpreis sinkt, während Bitcoin auf den Prüfstand gestellt wird. Die Werthaltigkeit beider Vermögenswerte wird angesichts der Marktvolatilität und der sich ändernden Anlegerstimmung auf die Probe gestellt.
-
- Hyperliquid-Tresore auspacken: Bestenlistengesteuerter Wettbewerb und Tresor-gesteuerte Dynamik meistern
- Nov 22, 2026 at 08:05 am
- Eine aktuelle Bitquery-Analyse zu Hyperliquid Vaults offenbart faszinierende Dynamiken, bei denen Führungskräfte profitieren können, während Einleger verlieren, was die Komplexität des durch Tresore gesteuerten Wettbewerbs unterstreicht.
-
- Nvidia-Gewinne, Bitcoin-Preis und der KI-Handel: Eine Achterbahnfahrt für Risikoanlagen
- Nov 22, 2026 at 07:45 am
- Die starken Gewinne von Nvidia übertrafen die Erwartungen, doch der Dominoeffekt auf Bitcoin und den breiteren KI-Handel offenbart ein komplexes Zusammenspiel zwischen Technologiegiganten und volatilen Kryptowährungen, das die Risikobereitschaft des Marktes prägt.
-
- CyberConnect Bridge Exploit löst Sicherheitsbedenken aus, Upbit und Bithumb stellen den CYBER-Handel ein
- Nov 22, 2026 at 07:35 am
- CyberConnect ist mit einem mutmaßlichen Bridge-Exploit konfrontiert, der zu CYBER-Token-Sicherheitswarnungen und Handelsaussetzungen an den großen südkoreanischen Börsen Upbit und Bithumb führt.
































