Foundation claims to fix 'self-destruct' feature that could have wiped out its NFTs

Quick Take

  • DeFiLllama co-founder 0xngmi discovered that Foundation has a smart contract function that, if activated, could wipe out all NFTs minted through its platform.
  • The platform says this issue has now been resolved.

NFT platform Foundation claims to have fixed issues concerning a self-destruct function that theoretically could have been used to wipe out all NFTs minted through its platform.

The issue was first highlighted publicly on June 21 by 0xngmi, co-founder of crypto analytics provider DeFiLlama, after a six-month period of negotiations with the company to disclose and fix the issue.

"This has been fixed for contracts deployed before 3/6," said Foundation co-founder and CTO Elpizo Choi on Twitter. "Contracts deployed after 3/6 were already safe - the owner of the implementation contract was set to 0, and the contract could not have been self destructed."

What was the issue?

All NFT collections on Foundation are minted using a single deployer contract and employ a "forwarder proxy," a design feature intended to reduce transaction fees during contract deployments.

This itself isn’t concerning — it’s the fact the contract contained a “self-destruct” function that posed a severe threat to all collections minted on the platform. This feature was originally meant to allow creators to destroy (or burn) their own collections if needed but it posed a risk to any NFT created with it.

At the time of the disclosures, the contract was secured by “2-out-of-6 multi-signature wallet,” meaning the account securing the deployer contract could be upgraded and taken over with two signatures from the Foundation’s team members or whoever has access to it, per 0xngmi.

THE SCOOP

Keep up with the latest news, trends, charts and views on crypto and DeFi with a new biweekly newsletter from The Block's Frank Chaparro

By signing-up you agree to our Terms of Service and Privacy Policy
By signing-up you agree to our Terms of Service and Privacy Policy

The concern was that, should a hacker gain control of these two keys, they could hold all the NFTs for ransom or destroy them entirely. 0xngmi explained in a GitHub post they simulated the attack and verified that the owner of the contract could brick all NFTs.

“All collectors that own Foundation pieces assume that their NFTs are immutable in the blockchain and can’t be manipulated. At most only metadata is at risk,” 0xngmi wrote on Twitter. “However reality is very far from that, all NFTs are just two transactions away from being destroyed.”

Disclosing the problem

0xngmi stated that he first notified Foundation of the vulnerability in December 2022. He added that on June 19, the platform responded, instructing 0xngmi to submit the concern to its bounty program and to complete a KYC process. Since then, he said there had been no progress, and 0xngmi had not received any further communication from Foundation, they told The Block.

0xngmi has suggested his own solution to the issue. Mint an NFT from the implementation address and then send it to a burner address, effectively eliminating the bug, he said.

Foundation makes up a small share of the NFT marketplace industry. In May of 2023, the firm brought in $1.42 million, or 0.2%, of the $673.6 million total volume, according to The Block’s Data Dashboard. The platform Blur brought in most of May’s monthly volume at $377.2 million, or 56%.

Foundation did not respond to The Block’s request for comment regarding the NFT vulnerability. 


© 2023 The Block. All Rights Reserved. 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.

About Authors

Vishal Chawla is The Block’s crypto ecosystems editor and has spent over six years covering tech protocols, cybersecurity, artificial intelligence and cloud computing. Vishal likes to delve deep into blockchain intricacies to ensure readers are well-informed about the continuously evolving crypto landscape. He is also a staunch advocate for rigorous security practices in the space. Before joining The Block, Vishal held positions at IDG ComputerWorld, CIO, and Crypto Briefing. He can be reached on Twitter at @vishal4c and via email at [email protected]
MK Manoylov has been a reporter for The Block since 2020 — joining just before bitcoin surpassed $20,000 for the first time. Since then, MK has written nearly 1,000 articles for the publication, covering any and all crypto news but with a penchant toward NFT, metaverse, web3 gaming, funding, crime, hack and crypto ecosystem stories. MK holds a graduate degree from New York University's Science, Health and Environmental Reporting Program (SHERP) and has also covered health topics for WebMD and Insider. You can follow MK on X @MManoylov and on LinkedIn.

Editor

To contact the editor of this story:
Tim Copeland at
[email protected]