CertiK-audited DEX Merlin Exploited For $1.8m
Crypto News

CertiK-audited DEX Merlin Exploited For $1.8m

3m
1 year ago

Merlin, an Ethereum-based decentralized exchange (DEX) utilizing zkSync layer-2 protocol, suffered an exploit in which roughly $1.8 million in funds were lost. This occurred despite having received an audit from smart-contract auditor CertiK. Since the disclosure, the Merlin team...

CertiK-audited DEX Merlin Exploited For $1.8m

Merlin, an Ethereum-based decentralized exchange (DEX) utilizing zkSync layer-2 protocol, suffered an exploit in which roughly $1.8 million in funds were lost.

This occurred despite having received an audit from smart-contract auditor CertiK. Since the disclosure, the Merlin team has advised users to revoke wallet permissions connected to its site and has announced that it is currently analyzing possible methodologies for the exploit.

Developer announcement 📢 Can everyone revoke connected site access on your wallets/sign permission https://t.co/YRxH7IUU4TWe are analysing the exploit of our protocol and would stress that everyone carries out this step as a precaution.More updates will be provided

— Merlin (@TheMerlinDEX) April 26, 2023

CertiK, the firm which issued the audit, claimed in its preliminary investigation that the incident may have originated from a private key management issue, rather than an exploit. The firm highlighted the "centralization risk" in its audit while also emphasizing that audits, on their own, are not designed to prevent private key issues. CertiK has assured that it will share relevant information with authorities if foul play can be suspected, or if insider information was possibly leaked.Blockchain security firm Peckshield has also issued disclosures on the threat actor, who has started moving some of the stolen funds to exchanges, with $133,800 USDC sent to MEXC Global and $31,000 USDC sent to Binance.

CertiK is a prominent brand in the blockchain security industry, and yet despite its defense on the matter, others have questioned the validity of the audit. eZKalibur, another zkSync DEX, claims to have identified the malicious code responsible for the fund drainage and raised questions on the quality of CertiK's audit.

According to eZKalibur, the problematic code lies within the initialize function, where two lines of code grant approval for the feeTo address to transfer an unlimited amount (type(uint256).max) of token0 and token1 from the contract's address. In this case, the feeTo address could potentially call the transferFrom function on the respective tokens, allowing the transfer of tokens from the contract's address to itself.

This finding raises questions about the thoroughness of CertiK's audit, as the risk of a rug pull, which is a significant concern, was not explicitly highlighted in the report.

eZKalibur argues that this issue should have been marked as "major" or even "critical" rather than a simple decentralization concern. In the absence of a timelock, such a vulnerability could lead to the immediate draining of all deposited funds, which is what transpired in the Merlin DEX exploit.

📢 We did some research on Merlin smart contracts and we identified the malicious code responsible for the draining of funds.These two lines of code in the initialize function are essentially granting approval for the feeTo address to transfer an unlimited (type(uint256).max)… pic.twitter.com/mIksh4HkhB

— eZKalibur ∎ (@zkaliburDEX) April 26, 2023

As the debate over the auditing process and centralization risks continues, blockchain dat indicateas that two addresses were responsible for the exploit. An address starting with 0x2744 took $850,000 USDC and bridged it to Ethereum, while another address, 0x2744d62, stole $844,000 USDC.Disclaimer: This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

0 people liked this article

Related Articles

Crypto News
The Bahamas to Enforce Stricter Crypto Rules Following the FTX Meltdown (Report)
The Bahamian regulators intend to ban algorithmic stablecoins and require crypto entities to provide feedback on their activities.
1 year ago
3m
Crypto News
Tech sector shakes up US stock futures, leaving markets in limbo
The S&P 500 experienced modest growth on April 26, thanks largely to the performance of tech stocks. Despite positive earnings reports from tech giants such as Microsoft, Alphabet, and Boeing, ...
1 year ago
3m
Crypto News
Leader of an Identity Theft Crypto Scam That Stole $4M Pleads Guilty
The leader of a Miami trio that stole $4 million from several banks and damaged a “leading cryptocurrency exchange” for $3.5 recently pleaded guilty to wire fraud. The post Leader of an Identity Th...
1 year ago
5m
Crypto News
Investors Move Towards Sparklo (SPRK) As Ripple (XRP) Sentiment Turns Bearish
In the cryptocurrency space, investors are always searching for new opportunities that offer promising returns. This is because the market is volatile and even top currencies like Ripple (XRP) do w...
1 year ago
3m
Crypto News
Apple gets rid of hidden Bitcoin white paper in the latest macOS beta
After a Bitcoin white paper was discovered in system files of all devices running macOS Catalina or later, Apple is now removing it.
1 year ago
2m
Crypto News
UK government invests heavily in AI ethics – Details
The UK government has recently announced a significant investment in artificial intelligence (AI) ethics, with the Prime Minister and Technology Secretary unveiling a £100 million initiative to sup...
1 year ago
3m