Back to Blog

泰达黄金智能合约的公开转账漏洞

Code Auditing
May 27, 2023

我们内部的分析工具于4月5日发现Tether Gold合约中存在一个bug,该bug允许攻击者将任何人的XAUt(Tether Gold)代币转移到一个预设地址。该团队收到了我们的报告,并表示他们已经在内部定位了这个问题。今天我们发现该问题已得到修复,并在此分享细节。此外,我们还将介绍如何使用Phalcon Fork来开发和调试此漏洞的PoC。

0x0. 漏洞

合约transferFrom 函数中,任何人都可以调用此函数,将其他用户的代币转移到代币所有者定义的受信任接收地址。虽然此漏洞不能直接用来将代币转移到攻击者账户,但攻击者仍然可以将池中的代币转移,从而操纵池中的代币价格(例如WETH-XAUt池)来获利。

此漏洞的修复非常简单,如下所示。

0x1. 如何利用该漏洞

为了编写和调试PoC,我们可以为此目的使用Phalcon Fork。首先,我们可以在漏洞被修补之前创建一个Fork。我在创建Fork时使用了区块高度17038763,通过Fork API完成。

步骤I:准备足够的Ether

第一步是为攻击者获取足够的Ether作为gas费用。如果账户中没有Ether,将发出从vitalik.eth发送Ether的交易。

步骤II:转移Tether Gold合约的所有权

Tether Gold合约的所有者是一个多重签名钱包(0xC6CDE7C39eB2f0F0095F41570af89eFC2C1Ea828)。要将所有权转移给攻击者,我们需要提交一个多重签名交易,然后确认该交易。

步骤III:向Tether Gold合约添加特权账户

我们添加了一个新账户0x189e7947a9d9210eec3a41dcf5f536bb1d7726f5作为特权账户。然后,我们调用transferFrom函数,将XAUt代币从受害者转移到特权账户。

0x2. PoC

请在以下github链接中找到PoC:

Sign up for the latest updates
Drift Protocol Incident: Multisig Governance Compromise via Durable Nonce Exploitation
Security Insights

Drift Protocol Incident: Multisig Governance Compromise via Durable Nonce Exploitation

On April 1, 2026 (UTC), Drift Protocol on Solana suffered a $285.3M loss after an attacker exploited Solana's durable nonce mechanism to delay the execution of phished multisig approvals, ultimately transferring administrative control of the protocol's 2-of-5 Squads governance with zero timelock. With full admin privileges, the attacker created a malicious collateral market (CVT), inflated its oracle price, relaxed withdrawal protections, and drained USDC, JLP, SOL, cbBTC, and other assets through 31 rapid withdrawals in approximately 12 minutes. This incident highlights how durable nonce-based delayed execution can decouple signer intent from on-chain execution, bypassing the temporal assumptions that multisig security implicitly relies on.

Weekly Web3 Security Incident Roundup | Mar 23 – Mar 29, 2026
Security Insights

Weekly Web3 Security Incident Roundup | Mar 23 – Mar 29, 2026

This BlockSec weekly security report covers eight DeFi attack incidents detected between March 23 and March 29, 2026, across Ethereum and BNB Chain, with total estimated losses of approximately $1.53M. Incidents include a $679K flawed burn mechanism exploit on the BCE token, a $512K spot-price manipulation attack on Cyrus Finance's PancakeSwap V3 liquidity withdrawal, a $133.5K flash-loan-driven referral reward manipulation on a TUR staking contract, and multiple integer overflow, reentrancy, and accounting error vulnerabilities in DeFi protocols. The report provides detailed vulnerability analysis and attack transaction breakdowns for each incident.

Newsletter -  March 2026
Security Insights

Newsletter - March 2026

In March 2026, the DeFi ecosystem experienced three major security incidents. Resolv Protocol lost ~$80M due to compromised privileged infrastructure keys, BitcoinReserveOffering suffered ~$2.7M from a double-minting logic flaw, and Venus Protocol incurred ~$2.15M following a donation attack combined with market manipulation.

Best Security Auditor for Web3

Validate design, code, and business logic before launch. Aligned with the highest industry security standards.

BlockSec Audit