NFT contract vulnerabilities are frequent, with losses of 64.9 million USD in the first half of 2022.

NFT Contract Security: Review of Events in the First Half of 2022 and Analysis of Common Audit Issues

In the first half of 2022, security incidents in the NFT field occurred frequently, resulting in significant economic losses. According to monitoring from data platforms, a total of 10 major security incidents occurred, with losses amounting to approximately $64.9 million. The attack methods mainly included exploiting contract vulnerabilities, private key leaks, and phishing, among others. Meanwhile, Discord phishing incidents occurred almost daily, with individual users frequently suffering losses.

Analysis of NFT Security Incidents in the First Half of the Year: Which Typical Cases Should We Be Cautious About?

Review of Typical Security Incidents

TreasureDAO event

On March 3, 2022, the TreasureDAO trading platform was hacked, and over 100 NFTs were stolen. The vulnerability originated from the chaotic logic in the buyItem function of the TreasureMarketplaceBuyer contract, which calculated prices without checking the token type, allowing NFTs to be purchased with 0 ERC-20 tokens. This reflects the potential logical issues that may arise when mixing ERC-1155 and ERC-721 tokens.

APE Coin airdrop event

On March 17, 2022, hackers obtained over 60,000 APE Coins through flash loans. The AirdropGrapesToken airdrop contract determines NFT ownership solely through balanceOf(), and this method is susceptible to manipulation by flash loans.

Revest Finance incident

On March 27, 2022, Revest Finance was attacked, resulting in a loss of $120,000. The vulnerability stemmed from an ERC-1155 reentrancy attack, as the contract did not check for the existence of a new FNFT during minting, and the state variable was incremented after _mint(), causing a reentrancy vulnerability.

NBA sheep shearing incident

On April 21, 2022, the NBA project was attacked. The_Association_Sales contract had issues with signature spoofing and reuse during the verification of the whitelist, did not store used signatures, and did not validate msg.sender during parameter passing.

Akutar event

On April 23, 2022, a vulnerability in the AkuAuction contract of the Akutar project resulted in 11,500 ETH being locked. There were two main logical issues: the refund function could be maliciously interrupted; and the situation of users bidding multiple times was not considered, leading to the inability to execute refunds.

XCarnival event

On June 24, 2022, XCarnival was attacked and lost 3087 ETH. The XNFT contract did not check the xToken address when staking NFTs, and did not verify the collateral record status when borrowing, allowing attackers to repeatedly use invalid collateral for borrowing.

Analysis of NFT Security Incidents in the First Half of the Year: Which Typical Cases Should We Be Cautious About?

Common Questions About NFT Contract Audits

  1. Signature forgery and reuse: lack of duplicate execution verification; signature check is unreasonable.

  2. Logical Flaw: Administrators can bypass the total supply limit to mint coins; there is a transaction order dependency attack during auctions.

  3. ERC721/ERC1155 Reentrancy Attack: Using the transfer notification feature may lead to reentrancy.

  4. Excessive scope of authorization: requiring global authorization instead of individual token authorization increases the risk of NFT theft.

  5. Price Manipulation: NFT prices depend on the token holdings of a certain contract and can be manipulated by flash loans.

Overall, the frequent occurrence of security incidents in NFT contracts reflects the importance of professional security audits. Project teams should prioritize contract security and seek professional audits to prevent potential risks.

Analysis of NFT Security Incidents in the First Half of the Year: Which Typical Cases Should We Be Cautious About?

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 6
  • Repost
  • Share
Comment
0/400
CommunitySlackervip
· 6h ago
It turns out that contract vulnerabilities can really yield so much profit.
View OriginalReply0
OnChainDetectivevip
· 6h ago
another day, another hack... pattern analysis suggests 90% due to basic contract oversights smh
Reply0
NotFinancialAdviservip
· 6h ago
Almost lost my pants, invest cautiously.
View OriginalReply0
RebaseVictimvip
· 6h ago
Blockchain Be Played for Suckers Large Investors Having money still has to pursue NFT
View OriginalReply0
ImpermanentLossFanvip
· 6h ago
60 million dollars, wow, made a profit again, that's terrible.
View OriginalReply0
ApyWhisperervip
· 7h ago
Another smart contracts vulnerability, tsk tsk.
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)