A hacker stole $38,200 in commissions Curve.

✨ Megiddo

✨ President ✨
Staff member
Administrator
Messages
4,023
Likes
1,875
Points
2,130
On November 10, a hacker sold Curve Finance's accumulated balance of 135 tokens and received approximately 38,205 USDC in their wallet. The funds belonged to Curve DAO and consisted of protocol fees. As the project team reported on November 17, the theft was made possible by a bug in the CowSwapBurner smart contract, which exchanges collected fees for the crvUSD stablecoin.

According to Curve, user funds, liquidity pools, lending markets, and crvUSD itself were unaffected. On the day of the attack, the Curve Emergency DAO team disabled the vulnerable contract and suspended fee conversion on the Ethereum network. A proposal to enable a new contract was put to a vote, scheduled to close on November 20.

Curve receives fees in various assets. To distribute the revenue among veCRV holders, the protocol exchanges collected tokens for crvUSD using the CowSwapBurner contract. Despite the word "burner" in the name, burning tokens in this case means selling them through CoW Swap, not sending them to a null address. The contract generates a separate trade order for each asset, and proceeds from executed trades are sent to the Curve fee distribution system.

An error occurred during trade confirmation. CowSwapBurner recognized a valid Curve order, but it didn't verify that its terms matched the order that CoW Swap actually executed. As a result, the contract approved the sale even though the executed order specified a different recipient and settlement token. This allowed the attacker to sell Curve assets for USDC and send the proceeds to their own address.

The attack targeted small remaining tokens that hadn't been sold during previous exchanges. Meanwhile, the scheduled fee conversion for the week proceeded as usual, bringing DAO approximately 97,300 crvUSD.

According to Bitquery analysts, 138 fraudulent orders were processed through CoW Swap. The attacker typically sold larger balances first. The median value of each trade was $254, and the proceeds from all sales were deposited into a single address.

According to Curve's report, after the attack, funds were transferred to the Arbitrum network and then to the Hyperliquid platform, where they were used to purchase 65 XMR. An additional 0.3 ETH was sent to the Tornado Cash cryptocurrency mixer. At the time of publication, the stolen funds had not been recovered.

In the proposed replacement for CowSwapBurner, the developers modified the order validation. Before allowing a sale, the new contract checks the approved order against the one that will be settled. Curve also urged teams from other projects that used its code to review their own fee processing contracts.