|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Articles d’actualité sur les crypto-monnaies
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.
Clause de non-responsabilité:info@kdj.com
Les informations fournies ne constituent pas des conseils commerciaux. kdj.com n’assume aucune responsabilité pour les investissements effectués sur la base des informations fournies dans cet article. Les crypto-monnaies sont très volatiles et il est fortement recommandé d’investir avec prudence après une recherche approfondie!
Si vous pensez que le contenu utilisé sur ce site Web porte atteinte à vos droits d’auteur, veuillez nous contacter immédiatement (info@kdj.com) et nous le supprimerons dans les plus brefs délais.
-
- La Thaïlande débloque l'accès aux ETF crypto : les ETF Bitcoin et Ether devraient faire leurs débuts en bourse
- Oct 11, 2026 at 04:05 am
- La Thaïlande ouvre la voie à des investissements cryptographiques réglementés avec le lancement prochain des ETF Bitcoin et Ether sur sa bourse, signalant une nouvelle ère pour l’accès aux ETF crypto dans la région.
-
- Le PDG d'Evernorth enflamme l'armée XRP avec sa cotation au Nasdaq et sa vision du financement futur
- Oct 11, 2026 at 04:05 am
- Les débuts d'Evernorth au Nasdaq en tant que XRPN et la vision audacieuse du PDG Asheesh Birla signalent une nouvelle ère pour la blockchain dans la finance traditionnelle, promettant un accès institutionnel et une participation active à l'écosystème XRP Ledger.
-
- Le réseau Tron voit une croissance explosive de l'USDT, renforçant la domination de l'émission de pièces stables
- Oct 11, 2026 at 03:55 am
- L'offre d'USDT de Tron a grimpé à 94,25 milliards de dollars, soit une augmentation de 18,67 milliards de dollars, consolidant son avance en matière d'émission de pièces stables avec des frais faibles favorisant l'adoption.
-
- Le portefeuille matériel Ledger fait face à une peur des attaques de la chaîne d'approvisionnement : une analyse approfondie des implants matériels et de ce que les utilisateurs doivent savoir
- Oct 11, 2026 at 03:55 am
- Ledger, l'un des principaux fabricants de portefeuilles matériels, a confirmé une attaque de la chaîne d'approvisionnement impliquant un implant matériel non autorisé dans au moins un appareil, soulevant de sérieuses questions sur l'intégrité des appareils et la sécurité des utilisateurs.
-
- Prévision et calendrier du prix XRP : les analystes envisagent un objectif de 2 $ au milieu de l'analyse de la structure du marché
- Oct 11, 2026 at 12:05 am
- Analyse de l'évolution récente des prix du XRP et des prédictions des experts, en se concentrant sur une hausse potentielle de 2 $ et des implications plus larges sur le marché.
-
- Justin Sun et Tron Blaze, une piste résistante aux quantiques sur Testnet
- Oct 10, 2026 at 08:05 pm
- Le fondateur de Tron, Justin Sun, annonce que la cryptographie post-quantique est en ligne sur testnet, visant une résistance quantique avant le « jour Q », dans un contexte de pression croissante de l'industrie pour une sécurité blockchain à l'épreuve du temps.
-
- Augmentation des transactions Chainlink Whale, l’accumulation de jetons LINK s’intensifie au milieu des spéculations sur les prévisions de prix
- Oct 10, 2026 at 12:05 pm
- Les transactions de baleines Chainlink ont atteint un sommet annuel, signalant une accumulation importante de jetons LINK. Découvrez les dernières prévisions de prix et tendances du marché.
-
- Morpho Labs alimente une croissance majeure, dépassant le milliard de dollars de liquidités institutionnelles
- Oct 10, 2026 at 12:05 pm
- Morpho Labs franchit une étape importante en franchissant 1 milliard de dollars de liquidités institutionnelles, soulignant la croissance de l'intégration de DeFi avec la finance traditionnelle.
-
- La sécurité du Litecoin attaquée : les préoccupations en matière de censure font vibrer r/CryptoCurrency
- Oct 10, 2026 at 12:05 pm
- Litecoin a récemment accusé r/CryptoCurrency de Reddit de censurer le contenu positif, suscitant un débat sur la modération de la plateforme et son impact sur la communauté et la visibilité de la crypto-monnaie.
































