Top 5 NFT smart contract vulnerabilities to watch out for

cryptoslatePublished on 2022-03-14Last updated on 2022-03-21

Abstract

The NFT sector has seen several problems since it emerged which made a lot of people concerned that NFTs are not as safe as previously thought. However, the problem does not lie with NFTs themselves.

The NFT sector has seen several problems since it emerged which made a lot of people concerned that NFTs are not as safe as previously thought. However, the problem does not lie with NFTs themselves.

NFTs are actually smart contracts, and these contracts are subject to vulnerabilities. In their essence, smart contracts are just code, and the more complex the code is, the more room there is for errors to show up. Of course, developers tend to comb their code for errors and vulnerabilities time and time again, but even after extensive search — a flaw or two can still remain and cause problems down the road, especially if bad actors manage to identify them.

This is why security audits should still be carried out, as the code of the smart contracts requires a greater amount of attention. Then, and only then can smart contracts — and to some extent, the NFTs — be adequately secured.

Let’s take a look at some of the more common but still quite dangerous flaws that tend to be present in smart contracts:

NFT token sale vulnerabilities

The first opportunity that bad actors have to use the flaws of smart contracts to disrupt an NFT project is during token sales. One of the most notable examples is the Adidas NFT token sale.

As the sale was underway, an attacker managed to bypass the limits on the maximum purchased tokens for a wallet. As a result, the hacker managed to score 330 NFTs, permanently disrupting Adidas’ otherwise successful debut NFT collection “Into the Metaverse.” All that the hacker had to do to achieve this is remove the limit that said that only two NFTs can be scored per Ethereum wallet.

Marketplace vulnerabilities

The next flaw does not necessarily involve the NFTs themselves, but the marketplaces where they can be found. One example of this is OpenSea, the largest NFT marketplace in the world. Not too long ago, OpenSea suffered an attack during which the offending party managed to buy coins at their old price.

This loophole allowed several people to buy valuable NFTs at prices significantly under the tokens’ market value. The most notable project that was affected by this was the Bored Ape Yacht Club, with one of its NFTs (#9991) purchased for 0.77 ETH, only for the attacker to resell it for 84.2 ETH.

Exposed private keys

The third problem that I would like to mention is not specific to NFTs. In fact, it has been a part of the crypto industry ever since there was a crypto industry. It revolves around the safe storage of private keys, which are used for accessing wallets and conducting payments.

Hackers have identified many methods that can be used against uninformed investors to steal their private keys and access their coins and tokens. One of the most commonly used methods is phishing. Once again, OpenSea comes to mind, as it recently suffered a phishing attack, where users thought that they were sending transactions to the network.

Instead, a hacker tricked them into signing the data using MetaMask, and with the help of their signature, the attacker managed to steal their funds.

Re-entrancy attacks

Another type of attack is known as re-entrancy attack, and this one concerns OpenZeppelin’s most popular NFT standard. Essentially, OpenZeppelin’s most popular implementation of the NFT standard has a callback function.

Essentially, it is a function that is intended to help developers integrate NFTs into projects, but the problem is that it can also be misused for conducting re-entrancy attacks, provided that the code developers were careless enough to forget to provide protection against them. One of the latest examples of this attack happened on February 3rd when a HypeBeast NFT contract reported an attack transaction.

The project had a limit on how many NFTs an account can mint, but the attackers used the callback function to invoke the mintNFT function again.

NFT scams and rugs

There have been plenty of examples of this, such as Cool Kittens, which promised investors an electronic token with cat art, a purpose-built token called PURR, and membership in a DAO. All rather standard promises that plenty of NFT projects have made and delivered on. Cool Kittens, however, did not. Only three weeks after announcing the NFT collection, the minting started, and the NFTs went up for sale. The project exploded, selling over 2,200 NFTs in mere hours, for a price of $70 apiece.

The developers collected $160,000 from a global audience of buyers in crypto, and then they simply disappeared with the money. This is only one example of something that is rather common in the crypto industry, so anyone participating in token sales of any kind should keep it in mind and exercise extreme caution.

Conclusion

The NFT sector provides plenty of opportunities for rather rewarding investments, but it can also be used against investors through a number of different vulnerabilities. This is not always the case, as sometimes, the flaw may lie with the marketplace that sells them, investors who don’t know how to protect themselves, or even with the NFT developers, who wish to scam the community and disappear with their money.

The only way to protect investors from this is for projects to conduct audits of their smart contracts, and for marketplaces to regularly check their systems for bugs and flaws. As for investors themselves, the only thing they can do is exercise caution and work on educating themselves on the threats that they might encounter, and what to do if they do run into any of these or other issues.

Trending Cryptos

Related Reads

Why Is the World Nervous About Japan Raising Interest Rates?

In June 2026, the Bank of Japan raised its policy rate to 1%, marking its first hike to this level since 1995. While this rate remains low compared to global peers like the US and Europe, the move signals a profound shift for a nation that has been a global source of ultra-cheap funding for decades. Japan's long-standing near-zero or negative interest rates had facilitated massive "yen carry trades," where international investors borrowed low-cost yen to invest in higher-yielding assets worldwide, such as US tech stocks and emerging market bonds. This made Japan a critical, often overlooked, source of global liquidity. Japan's ultra-loose policy stemmed from structural challenges post-1990s asset bubble: aging demographics, chronic low inflation/deflation, and high public debt. Recent shifts, including sustained wage growth (exceeding 5% in recent years) and inflation consistently above the 2% target, have created a "wage-price spiral" possibility, prompting the policy normalization. The global market's concern lies not in the absolute rate but in the potential unwinding of the yen carry trade. As Japanese borrowing costs rise, the economics of these leveraged global investments change, potentially triggering deleveraging and capital outflows from risk assets. Market anxiety focuses on the end of a thirty-year consensus that Japan would perpetually provide cheap funding. Ultimately, the global impact will depend on the interplay with US monetary policy. While Japan is tightening, the significant interest rate differential with the US remains. The key future dynamic is whether simultaneous Japanese hikes and eventual US rate cuts will narrow this gap, forcing a major recalibration of global capital flows and asset pricing built on an era of abundant, cheap yen liquidity.

marsbit1h ago

Why Is the World Nervous About Japan Raising Interest Rates?

marsbit1h ago

Research Report Analysis: MRVL's Optical AI Booming, Why High Valuation Keeps Morgan Stanley's Star Analyst Sidelined?

Report Recap: MRVL Optical AI Boom - Why High Valuation Led Morgan Stanley's Star Analyst to Stay Neutral? Morgan Stanley analyst Joseph Moore maintained an "Equal-weight" (Neutral) rating on Marvell Technology (MRVL) on May 28, raising the price target from $172 to $195, below the trading price. This stance comes despite Marvell reporting a record quarter and significantly raising its full-year outlook (FY27 revenue ~$11.5B, up ~40%). Moore's neutral view is based on valuation. The $195 target implies ~40x CY2027 P/E. He contrasts MRVL with NVDA: both trade near ~$200, but Nvidia's forward EPS is more than double Marvell's. For MRVL's valuation to hold, it needs consistent earnings upgrades, proof of networking market share gains, or certainty on large-scale custom AI chip shipments—none of which are confirmed yet. Growth is driven by two pillars: **1) Optical Interconnect** (the faster runner): Moore raised FY27 growth expectations to >70%, with the optical module product line nearing a $1B annualized run rate. **2) Custom AI Chips** (the climber): Confidence in FY28 is growing, but a major new customer project only ramps in FY28, with no current revenue visibility. Key risks are the underperforming Storage, Enterprise, and legacy Networking segments. Moore acknowledges the real AI opportunity but believes the current price already reflects it. For the stock to work from here, investors need to see the optical business hit its targets, custom chips ramp as planned, and a recovery in the weaker business units.

marsbit2h ago

Research Report Analysis: MRVL's Optical AI Booming, Why High Valuation Keeps Morgan Stanley's Star Analyst Sidelined?

marsbit2h ago

qinbaFrank: Review and Outlook of the AI Computing Power Wave — From the Three Debates on NVIDIA to Optical Interconnect and SpaceX IPO, How is Capital Rotating?

**Summary: Retrospective and Outlook on the AI Computing Wave - A Framework for Capital Rotation** Based on a presentation by investor qinbaFrank, this analysis reviews the AI computing market trajectory since 2023 and outlines a forward-looking framework. **Key Phases and Market Debates:** The AI bull market progressed through three major debates: 1) The necessity of massive capital expenditure (late 2023). 2) The sustainability of tech giants' spending (early 2024-early 2025). 3) Potential overestimation of compute needs (early 2025). Consensus solidified in late 2025 as model capabilities and utility demonstrably improved. **Core Thesis: Penetration Rate Drives Commercialization.** Unlike the 2000 dot-com bubble, the current AI wave benefits from mature digital infrastructure, enabling faster adoption. The critical threshold is 10% penetration; surpassing it (with recent enterprise intent surveys showing ~18%) indicates entry into a rapid growth "golden period" where user scale and willingness to pay increase simultaneously. **AI vs. Internet: A Fundamental Difference.** While the internet enhanced connection efficiency, AI directly substitutes human cognition and labor. Once AI performance exceeds the "societal average" human level, its commercial value scales exponentially as payment shifts from human labor costs to AI service fees. **Investment Logic Evolution in the Compute Chain.** The focus has expanded from GPUs to a systemic re-rating of the entire hardware stack: storage/HBM, CPUs, interconnects, power, and advanced packaging. The framework is: **short-term "scarcity pricing," mid-term "upgrade pricing" (e.g., optical interconnects, power networks), and long-term "Physical AI" pricing** (edge computing, robotics). **Market Focus Shift and Adjustment Framework.** The market is transitioning from "hardware scarcity" to "commercialization validation." The ultimate anchor for the narrative is sustained high growth in model providers' Annual Recurring Revenue (ARR) and cloud business revenue, which justifies continued capital expenditure. Adjustments are categorized into three levels: * **L1 (Minor):** Driven by valuation compression or macro noise (e.g., single CPI print). Fundamentals intact. * **L2 (Moderate):** Triggered by significant macro events requiring risk repricing. Requires new data for confidence restoration. * **L3 (Major):** Involves a reset of the core industrial narrative or macro regime (e.g., AI commercialization growth stalling). The **crucial dividing line** is whether AI commercialization growth slows. Without a slowdown, pullbacks are likely L1/L2 "repricing" events. A genuine growth deceleration would signal an L2/L3 narrative reset. **Conclusion: A Foundational Civilizational Leap.** AI represents a foundational upgrade to "intelligence" itself—akin to humanity mastering fire—rather than a single-point industrial revolution. This底层能力跃迁 (underlying capability leap) will spawn successive waves of innovation (Agent, robotics, industry workflow重构). The journey will be波浪式的 (wavelike), driven by cycles of scarcity, technological upgrades, and远期兑现 (long-term realization).

marsbit2h ago

qinbaFrank: Review and Outlook of the AI Computing Power Wave — From the Three Debates on NVIDIA to Optical Interconnect and SpaceX IPO, How is Capital Rotating?

marsbit2h ago

Trading

Spot
Futures

Hot Articles

Discussions

Welcome to the HTX Community. Here, you can stay informed about the latest platform developments and gain access to professional market insights. Users' opinions on the price of ETH (ETH) are presented below.

活动图片