Analysis of the x402bridge attack incident: Private Key leak caused damage to over 200 users, excessive authorization exposes hidden risks.

MarketWhisper
ETH1,97%

Web3 security company GoPlus Security reported that the newly launched cross-layer protocol x402bridge suffered a security vulnerability, resulting in over 200 users losing USDC, totaling approximately $17,693. On-chain detective and security company SlowMist have confirmed that the vulnerability is most likely due to the leakage of the administrator's private key, which allowed attackers to gain special management permissions of the contract. GoPlus Security urgently advises all users with wallets on this protocol to revoke ongoing authorizations as soon as possible and reminds users to never grant unlimited authorization to contracts. This incident exposed the potential security risk of private key storage on servers in the x402 mechanism, which could lead to the leakage of administrator permissions.

New Protocol x402bridge Attacked: Excessive Authorization Exposes Private Key Security Risks

The x402bridge protocol encountered a security attack a few days after its launch on-chain, resulting in user fund losses. The mechanism of the protocol requires users to obtain authorization from the Owner contract before minting USDC. In this incident, it was this excessive authorization that led to the transfer of the remaining stablecoins of over 200 users.

Attackers exploit leaked Private Key to steal user USDC

According to observations by GoPlus Security, the attack process clearly points to privilege abuse:

  • Permission Transfer: The creator address (0xed1A starting with ) has transferred ownership to the address 0x2b8F, granting the latter special management permissions held by the x402bridge team, including the ability to modify critical settings and transfer assets.
  • Execute malicious functions: After gaining control, the new owner address immediately executed a function called “transferUserToken”, allowing that address to withdraw the remaining USD Coins from all wallets previously authorized to the contract.
  • Loss and transfer of funds: Address 0x2b8F has stolen a total of approximately 17,693 USD worth of USDC from users, then exchanged the stolen funds for Ethereum and transferred them to the Arbitrum network through multiple cross-chain transactions.

Root Cause of the Vulnerability: Private Key Storage Risks in the x402 Mechanism

The x402bridge team has responded to this vulnerability incident, confirming that the attack was caused by a Private Key leak, which led to the theft of several teams' tests and major Wallets. The project has suspended all activities and closed the website, and has reported to law enforcement.

  • Authorization process risk: The protocol previously explained the workings of its x402 mechanism: users sign or approve transactions through a web interface, and the authorization information is sent to the backend server, which then withdraws funds and mints tokens.
  • Private Key Exposure Risk: The team admits, “When we go live on x402scan.com, we need to store the private key on the server to call contract methods.” This step may lead to the exposure of the administrator's private key during the phase of connecting to the internet, potentially resulting in permission leakage. Once the private key is stolen, hackers can take over all administrator privileges and redistribute user funds.

A few days before this attack occurred, the usage of x402 transactions saw a surge. On October 27, the market capitalization of the x402 token surpassed $800 million for the first time, and the trading volume of the x402 protocol on mainstream CEX reached 500,000 transactions in a week, a month-on-month increase of 10,780%.

Security Advice: GoPlus urges users to revoke authorization immediately.

Given the seriousness of this leak, GoPlus Security urgently advises users with wallets on this protocol to immediately revoke any ongoing authorizations. The security company also reminds all users:

  1. Verify the address: Before approving any transfers, check that the authorized address is the official address of the project.
  2. Limit the authorized amount: Only authorize the necessary amount, and do not grant unlimited authorization to the contract.
  3. Regular checks: Regularly check and revoke unnecessary authorizations.

Conclusion

The incident of x402bridge suffering a Private Key leak attack has once again sounded the alarm in the Web3 space regarding the risks posed by centralized components (such as servers storing Private Keys). Although the x402 protocol aims to utilize the HTTP 402 Payment Required status code to enable instant, programmable stablecoin payments, the security vulnerabilities in its implementation mechanism must be addressed immediately. For users, this attack serves as an expensive lesson, reminding us to remain vigilant and manage Wallet authorizations carefully when interacting with any blockchain protocol.

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.

Related Articles

Can bypassing Financial Supervisory Commission regulations for buying crypto with credit cards be possible? OdenDing pushes a Wallet Pro crypto-purchase service with U.S. debit cards

OdinTing launches OwlPay and Wallet Pro services, focusing on B2B cross-border payments. By combining stablecoin technology with international financial systems, it showcases its fintech transformation. Through a partnership with MoneyGram, Wallet Pro enables cross-border transfers of stablecoins purchased with cash and operates in the U.S. market. The company’s offshore model bypasses Taiwan’s strict regulation and challenges the competitive landscape under the new draft law, which will in the future affect local players’ compliance strategies.

CryptoCity2h ago

Circle CEO: Due to the “moral dilemma,” the Drift hacker incident, which was not frozen, resulted in the theft of USDC

Circle CEO Jeremy Allaire addressed criticism at a news conference regarding the previously unfrozen stolen USDC, emphasizing that the company will only freeze wallets under law enforcement instructions. In addition, he said Circle is in communication with U.S. lawmakers, hoping to establish a “safe harbor” mechanism for stablecoin issuers.

GateNews4h ago

Circle signs an MOU with Dunamu, the parent company of a certain Korean CEX, to collaborate in areas such as stablecoins

Circle signed a memorandum of understanding with Dunamu, the South Korean CEX operator, to cooperate in advancing the stablecoin and digital asset sectors, jointly improving market participants’ information access capabilities, and promoting trust in and the healthy development of South Korea’s digital asset ecosystem.

GateNews7h ago

Japan Stablecoin Regulations: Full Breakdown—From Fund Settlement to JPYC Launch, Understand Three Compliant Issuance Paths at a Glance

Japan is one of the major economies to establish a comprehensive legal framework for stablecoins at the earliest stage in the world. With the formal implementation of the 2023 amendments to the Act on Payment Services (amended Funds Settlement Act), the issuance of yen stablecoins has moved from a legal gray area to clear regulation, and in 2025 it will see the official launch of the first compliant yen stablecoin, JPYC. This article fully reviews the development of Japan’s stablecoin regulations, three compliant issuance pathways, and the main current market cases, so that financial institutions in Taiwan and the crypto industry can use it as a reference. Background of Japan’s stablecoin legislation: From the UST collapse to regulatory formation In May 2022, the algorithmic stablecoin TerraUSD (UST) collapsed, triggering intense global attention on stablecoin regulation. Japan then accelerated its legislative efforts; in June of the same year, Japan’s National Diet formally passed a stablecoin bill, clearly defining stablecoins as those that must be linked to fiat currency, and that must be

ChainNewsAbmedia21h ago
Comment
0/400
No comments