Convex Finance Hack
What happened
On June 23, 2022, attackers hijacked the DNS records for Convex Finance's website and pointed visitors to a copy of the site. The copy looked like the real frontend, but its buttons asked users to approve attacker-controlled contracts instead of Convex's own. The domain was registered at Namecheap, and the same wave of DNS hijacks hit Ribbon Finance, DeFi Saver and Allbridge. In its post-mortem Convex said its Namecheap account had 2FA, a strong password and security alerts, yet the DNS was changed and alerts were switched off; Namecheap's CEO confirmed that a customer support agent altered the records.
The fake staking contract 0xF403a2c10B0B9feF8f0d4F931df5d86aD187AE31 was built to resemble the real one, 0xF403C135812408BFbE8713b5A23a04b3D48AAE31, sharing the same first four and last four characters. A user who checked only the start and end of the address in their wallet prompt would not notice the swap. Cryptonomist reported that at least 10 more malicious contracts were found as the investigation widened.
Convex said funds in its verified contracts were never at risk. It set up convexfinance.fi and frax.convexfinance.fi as temporary alternative domains and told anyone who used convexfinance.com from June 20 to June 23 to review their token approvals. Its post-mortem counted 40 addresses that approved malicious contracts, of which only 3 had funds taken, with an estimated 15,968 cvxCRV and 433 CRV suspected stolen. Convex said it would compensate those losses from its treasury in CVX at the USD value at the time of loss, paid once the affected address had revoked the malicious approvals. CoinDesk reported that a wallet Etherscan labeled "Convex Phisher Deposits" (0xcdc0f019f0ec0a903ca689e2bced3996efc53939) swapped just under $1,000 of USDC and CRV on Uniswap.
Addresses reported early (AMBCrypto) as having approved the malicious contract:
0x496e53c32a69a79a82ed85d2913010dd2f9d1b4f0x4ffc5f22770ab6046c8d66dabae3a9cd1e7a03e70x5b186c93a50d3cb435fe2933427d36e6dc688e4b0x624301090700ea1e3c5b5224f89adfae405412c10x92557b6ffa116b53cf2c3bc1d6d33f78d97ed4c9
How it happened
- The attacker changed the DNS records for
convexfinance.comat the registrar, Namecheap, so the domain served an attacker-hosted copy of the Convex frontend. - The copied site replaced the contract addresses behind its buttons with attacker contracts, including
0xF403a2c1...AE31, which shares its first and last four characters with the real0xF403C135...AE31. - Visitors who used the site as normal signed token approvals for the lookalike contracts. Convex says the malicious contracts were not shown to every user or always on the same buttons. By its count 40 addresses approved them.
- Using those approvals, the attacker moved tokens out of 3 of those wallets, an estimated 15,968 cvxCRV and 433 CRV. At least one phishing wallet then swapped CRV and USDC on Uniswap.
- Convex pointed the DNS back to the real site, re-enabled its security alerts, stood up alternative domains, later moved to a new registrar, and offered treasury-funded compensation in CVX.
Protocol details
Security review history
- MixBytes View report
Evidence
- report Report thedefiant.io
- report Report convexfinance.medium.com
- report Post-Mortem of Events June 23 (Convex Finance, Wayback capture) web.archive.org
- address etherscan.io address 0x496e…1b4f etherscan.io
- address etherscan.io address 0x4ffc…03e7 etherscan.io
- address etherscan.io address 0x5b18…8e4b etherscan.io
- address etherscan.io address 0x6243…12c1 etherscan.io
- address etherscan.io address 0x9255…d4c9 etherscan.io
- address etherscan.io address 0xF403…AE31 etherscan.io
- address etherscan.io address 0xb732…f9aa etherscan.io
- analysis Web Archive web.archive.org
- analysis DeFiLlama defillama.com
- analysis Convex: more info on the hack en.cryptonomist.ch
- analysis Convex Finance Sets Up New URLs After Website Address Is Hijacked coindesk.com
- analysis Curve staking platform Convex suffers DNS hijacking theblock.co
- analysis Was Convex Finance targeted in the latest spoofing exploit ambcrypto.com
- analysis 2022 Namecheap DNS Hijack: Check If You're Affected (Revoke.cash) revoke.cash
- analysis Hackers Step Up Attempts to Hijack DeFi Websites (The Defiant, via Yahoo Finance) finance.yahoo.com
- analysis www.youtube.com page watch youtube.com
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.