Cointime

Download App
iOS & Android

What Are the Common Security Issues in GameFi?

This article is a community submission. The author is Zhangchi Qin, a smart contract auditor at holistic blockchain security company Salus Security. 

Views in this article are of the contributor / author and do not necessarily reflect those of Binance Academy.

TLDR:

  • GameFi projects face various security challenges that can be classified as on-chain and off-chain issues. 
  • On-chain security challenges mainly involve the management of ERC-20 tokens and NFTs, the safety of cross-chain bridges, and decentralized autonomous organization (DAO) governance. 
  • Off-chain challenges, on the other hand, are typically related to web interfaces and servers. 
  • GameFi projects should prioritize security measures, such as rigorous audits, vulnerability scanning, and penetration testing, as well as implement best operational practices and business controls.

Introduction

GameFi combines blockchain technology with gaming to create decentralized platforms featuring in-game assets and digital currencies. It typically features a play-to-earn (P2E) model that allows players to earn crypto rewards. GameFi also gives gamers true ownership and complete control over their in-game assets.

While GameFi is gaining popularity, it’s facing continuous and significant threats from hacks throughout its life cycle. Some projects may value speed over quality and therefore, lack robust security precautions, putting both the community and creators at risk of significant losses.

Why Is GameFi Security Important?

GameFi experienced considerable growth in 2021 with its P2E model offering players novel in-game financial opportunities. In 2022, move-to-earn projects further highlighted GameFi’s growth potential. GameFi was crypto’s top sector in 2022, accounting for approximately 9.5% of the industry’s total funding and year-on-year growth of over 118%.

GameFi is different from traditional gaming because more is at stake for users and any hack could mean significant losses for them. In extreme scenarios, security breaches could end a project.

For example, attackers exploited a backdoor in a Remote Procedure Call (RPC) node to obtain a signature on the GameFi project Axie Infinity in 2022, allowing attackers to carry out unauthorized withdrawals totalling nearly $600 million in ETH. Any vulnerabilities in GameFi projects could result in massive losses for both investors and players, underscoring the critical importance of GameFi security.

On-chain Security Challenges

ERC-20 token vulnerabilities

ERC-20 tokens are frequently used in GameFi projects as a virtual currency for in-game purchases, reward mechanisms for players, and a means of exchange.

Improper minting and management of ERC-20 tokens can introduce security risks. One common vulnerability, called reentrancy, may arise during the minting process. Attacks can exploit the logic loophole in a contract to repeatedly execute a specific function, resulting in the infinite minting of tokens.

As universal in-game currencies, ERC-20 tokens’ stability and quantity determines a game’s playability and sustainability. Hence, projects should ensure the logic of codes and strictly control the total supply of ERC-20 tokens.

P2E GameFi project DeFi Kingdoms was attacked by malicious ERC-20 minting in 2022. Some players leveraged the logic vulnerability to mint the game’s locked native tokens, causing the token price to plummet afterwards.

NFT vulnerabilities

NFTs are primarily used as in-game virtual assets in GameFi projects, including equipment, props, and souvenirs. They offer players clear ownership and can maintain stable value via inflation control and scarcity. However, improper use of NFTs can introduce security vulnerabilities.

The value of NFTs is reflected in the rarity of equipment or props, with players typically seeking the rarest NFTs. During the NFT minting process, block-related information like timestamps may be used as a weak random source for generating NFTs with different levels of rarity.A miner can manipulate the block timestamp to some extent in order to maliciously mint rarer NFTs.

Even a reliable source of randomness, such as Chainlink VRF (Verifiable Random Function), does not remove all risks. Malicious users can revoke operations while minting unwanted NFT token IDs and repeat the process until a rare NFT is minted.

When players trade and transfer NFTs, potential smart contract vulnerabilities may occur. For example, the function safeTransferFrom() is used to transfer ERC-721 NFTs. When the receiver is a contract address, the function onERC721Received() will be triggered for a callback. Then there is the potential risk of the reentrancy attacks, whereby attackers can dictate the logic within the function on ERC721Received().

This risk also exists among ERC-1155 NFTs, whereby the function safeTransferFrom() triggers the function onERC1155Received() and allows attackers to carry out a reentrancy attack.

Bridge vulnerabilities

Cross-chain bridges are used in GameFi to allow users to exchange in-game assets across different networks. They are also critical for enhancing GameFi’s experiences and liquidity.

One major risk of cross-chain bridges in GameFi comes from inconsistencies among in-game assets. The contracts on both sides of the bridge should guarantee that the same amount of assets will be accepted and burned. However, due to loopholes in the contracts for verifying and accounting, attackers can compromise them to create a large number of assets out of thin air.

DAO governance vulnerabilities

Many GameFi projects are governed by DAOs, which may introduce the risk of centralization if the majority of governance tokens are owned by a few large actors. Smart contracts that define DAO governance rules open up another venue for potential compromises, as attackers can find ways to access the DAO treasury.

Off-chain Security Challenges

Most GameFi projects still depend on off-chain centralized servers for back-end operations, web interfaces, or mobile apps. These servers house critical information, including game data and owner accounts, and they are vulnerable to malicious attacks like penetration and Trojan horse malware.

When it comes to NFTs, metadata contains important descriptive information and is stored off-chain as JSON files. However, many GameFi projects store their NFT metadata on their own centralized servers instead of using decentralized infrastructure like IPFS. This increases the likelihood of metadata tampering by related parties or attackers, which could infringe on players’ rights.

In the context of cross-chain bridges, attackers may obtain validators’ signatures or private keys through penetration or phishing attacks. They can compromise the infrastructure and execute an exploit to control in-game assets.

During data transmission, attackers may hijack and inject the network packet with malicious code. By modifying the data package, attackers may implement false top-ups and use the unit purchase amount to get more game items.

Front-end interfaces give attackers another avenue to maliciously infiltrate the system. If an information leak occurs on the leaderboard of one game, attackers can send the leaked address-related information to the server to obtain corresponding sensitive information.

Ways To Improve Security

To safeguard GameFi projects, it’s crucial to exercise caution at every stage. Ensuring flawless smart contract codes is the foundation of a successful GameFi project — this involves writing high-quality code, conducting regular audits, and using formal smart contract verification.

Maintaining the security of servers and other infrastructure components is also critical; penetration testing should be conducted to detect possible vulnerabilities. With DApp- and blockchain-based systems, penetration testing brings with it Web3 features. As such, specific precautions are necessary for digital wallets and decentralized protocols.

GameFi projects should also adhere to other best practices, including a secure runtime process and complete emergency response. The former involves monitoring triggered security events, hardening environment security, and releasing bug bounty programs.

At the same time, projects must develop a complete emergency response process that includes aspects such as stop-loss disposal, attack tracking, and issue analysis.

Closing Thoughts

GameFi’s security vulnerabilities go beyond those mentioned in this article and many incidents have shown that projects have ignored or downplayed security risks. GameFi is a significant part of the future of gaming. As such, projects should always pay attention to security issues and put their communities’ interests first.

Read more: https://academy.binance.com/en/articles/what-are-the-common-security-issues-in-gamefi

NFT
Comments

All Comments

Recommended for you

  • NVIDIA's Market Value Surpasses $5 Trillion Again

    On April 24, NVIDIA's stock price rose by 3.08%, reaching $205.790 per share, with a total market value of $5.00 trillion. The stock price hit a new high since late October 2025.

  • Ethereum Foundation to Sell 10,000 ETH to BitMine

    On April 24, the Ethereum Foundation announced the finalization of a sale of 10,000 ETH to BitMine, the first treasury company of Ethereum, through an over-the-counter (OTC) trading platform, at an average price of $2,387 per ETH.

  • Sources: U.S. Justice Department Expected to Drop Criminal Investigation into Powell

    On April 24, multiple informed sources revealed that the U.S. Justice Department is expected to conclude its criminal investigation into Federal Reserve Chairman Jerome Powell as early as Friday, thereby ending a stalemate that could have delayed the appointment of Powell's successor. Sources indicated that senior officials from the Justice Department recently contacted several senators, including Republican Senator Thom Tillis, a member of the Senate Banking Committee, to inform them of the plan to abandon the investigation into alleged cost overruns related to the renovation of the Federal Reserve's Washington headquarters, and to refer the matter to the Federal Reserve's internal oversight body. Powell's term is set to end next month, but he stated in March that he would remain until Trump's nominee for Federal Reserve Chair, Waller, is confirmed. (ABC News)

  • U.S. Stock Indices Open Higher; Intel Surges Approximately 23% to Record High

    On April 24, U.S. stock indices opened higher across the board, with the Dow Jones up 0.02%, the S&P 500 rising 0.4%, and the Nasdaq increasing by 0.73%. Intel surged approximately 23%, reaching a record high; the company expects second-quarter revenue between $13.8 billion and $14.8 billion, while the market estimate is $13.04 billion. AMD rose over 10%, and Arm increased more than 8%. Nvidia's stock price rose by 0.11%, while Google's Class A shares fell by 0.49%. Apple's stock price decreased by 0.61%, Microsoft’s stock rose by 0.47%, Amazon's stock increased by 1.42%, Meta Platforms Inc Class A shares fell by 0.34%, Tesla's stock remained unchanged, and Netflix's stock dropped by 0.92%.

  • BTC Surpasses $78,000

    Market data shows that BTC has surpassed $78,000, currently priced at $78,013.14, with a 24-hour increase of 0.7%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Central Bank and Eight Departments: Prohibit Online Marketing Services for Virtual Currency Issuance and Trading

    On April 24, the People's Bank of China and eight other departments jointly issued the "Regulations on the Management of Online Marketing of Financial Products," which will take effect on September 30, 2026, systematically regulating online marketing activities for financial products. The regulations specify that only approved financial institutions and their self-operated platforms, as well as entrusted third-party internet platforms, may engage in online marketing of financial products. It prohibits providing online marketing services for illegal financial activities such as illegal fundraising, virtual currency issuance and trading, and illegal foreign exchange margin trading. The regulations detail requirements regarding the authenticity of marketing content, risk disclosure, algorithm recommendations, pop-up advertisements, account naming, trademark usage, cooperation models, and the protection of data and personal information. They also clarify the regulatory responsibilities and penalties for financial management departments, internet information, telecommunications, and market supervision departments.

  • BTC Surpasses $78,000

    Market data shows that BTC has surpassed $78,000, currently priced at $78,049.83, with a 24-hour increase of 0.04%. The market is experiencing significant volatility, so please ensure proper risk management.

  • DeepSeek-V4 Preview Version Officially Launched and Open-Sourced

    On April 24, DeepSeek announced via its official WeChat account that the preview version of the new model series DeepSeek-V4 is officially online and open-sourced. DeepSeek-V4 features a million-word ultra-long context and leads in agent capabilities, world knowledge, and reasoning performance in both domestic and open-source fields. The model is available in two versions based on size. Starting today, users can log in to the official website chat.deepseek.com or the official app to interact with the latest DeepSeek-V4 and explore the new experience of 1M ultra-long context memory. The API service has also been updated; by changing the model_name to deepseek-v4-pro or deepseek-v4-flash, users can access it.

  • Intel CEO: Semiconductor Potential Market Size Approaching $1 Trillion

    On April 24, local time, after the U.S. stock market closed on April 23, Intel officially released its Q1 fiscal year 2026 financial report and held an earnings call. The company delivered its sixth consecutive quarter of better-than-expected results, with revenue, gross margin, and earnings per share all surpassing guidance. The AI business has become the core growth engine, with a surge in demand for server CPUs and advancements in advanced processes and packaging exceeding expectations. Following this financial report, Intel's stock price surged nearly 20% in after-hours trading. During the earnings call, Intel CEO Pat Gelsinger stated that despite continuous improvements in factory capacity, demand across all business segments remains higher than supply, particularly for Xeon server CPUs, which are expected to maintain strong growth momentum over the next two years. Gelsinger also noted, 'In recent years, the focus in high-performance computing has been almost entirely on graphics processors and other accelerators. In recent months, clear signs have shown that central processing units are becoming an indispensable foundation in the era of artificial intelligence.' Looking at the overall market, Gelsinger anticipates that driven by explosive growth in AI demand, the overall potential market size of the semiconductor industry is approaching $1 trillion. However, Intel's management also warned that the company still faces multiple pressures, including declining demand in the PC market, rising costs, expanding capital expenditures, and supply constraints. (Dongxin News Agency)

  • Trump: U.S. to Soon Capture Nearly 50% of Chip Market

    On April 24, U.S. President Trump declared on the 23rd that the United States will soon capture nearly 50% of the chip market, warning that chip companies that do not manufacture in the U.S. will face very high tariffs in a year and a half to two years. U.S. Secretary of Commerce Gina Raimondo stated that the U.S. previously held only 3% to 4% of the chip market while having the largest demand for chips. Under Trump's directive, the U.S. is requiring semiconductor fabs to return to domestic production, with expectations that fabs worth $1 trillion will come to the U.S. Raimondo emphasized that this is not about tech giants purchasing chips, but rather about chip manufacturing. She mentioned commitments from Micron Technology to invest $200 billion and TSMC to invest $165 billion, along with $500 billion in funds from Taiwan expected to flow into the U.S. Raimondo also indicated during a congressional hearing on the 23rd that investments in the U.S. semiconductor industry during Trump's term are expected to reach $1 trillion. (Dongxin News Agency)