The Decentralized Finance (DeFi) ecosystem suffered a significant blow on July 30, 2023, when Curve Finance was hacked. The hacker exploited a vulnerability in the Vyper compiler, making off with over $22 million.
Vyper, a smart contract programming language widely employed in various DeFi protocols, incorporates a reentrancy lock to halt unauthorized funds draining from smart contracts. Unfortunately, a flaw in this security feature enabled the hacker to exploit the Curve Finance swap pool to authorize the withdrawals.
bsc.news