Login
Sign Up
On June 21, a sophisticated MEV bot operating on Ethereum suffered a catastrophic loss of over $7.5 million in WETH and USDC. The victim, known as Jaredfromsubway.eth, is a prominent sandwich attack arbitrage bot that had previously targeted ordinary users. Unlike typical hacks involving private key leakage or smart contract exploits, this incident involved a "legal" transfer of assets through the standard Approval mechanism. At the time of writing, the bot operator publicly offered a 50% bounty for the return of 2,150 ETH within 48 hours, threatening legal action if the funds were not recovered. This event underscores a critical vulnerability in the daily operations of on-chain entities, specifically the dangers inherent in the Approval function.
The attack was not a random exploit but a meticulously crafted operation designed to hijack the trading logic of the MEV bot. Sandwich attacks involve bots detecting pending transactions, buying assets ahead of users to inflate prices, and selling immediately for profit. This strategy requires continuous scanning of the mempool and rapid execution of complex transaction paths. Data compiled by Woofun AI indicates that attackers spent weeks constructing a transaction environment that appeared highly profitable to the bot. By matching the bot's specific profit criteria, the attackers forced the system to automatically execute a transaction path that relinquished control of its assets, effectively tricking the bot into authorizing its own theft.
This incident reveals a fundamental blind spot in automated trading systems: while these bots excel at calculating price differences, gas costs, and transaction sequences, they often fail to thoroughly verify new contracts before interacting with them. The underlying risk mirrors that faced by human users, where authorization is treated as a routine step without full recognition of potential dangers. In the ERC-20 standard on 以太坊, Approval is a foundational feature required for smart contracts to access user funds. While direct transfers use the "transfer" function, interactions with DEXs, lending protocols, or staking platforms require users to grant permission via Approval, allowing contracts to use the "transferFrom" function within a specified limit.
Although Approval is essential for DeFi functionality, it introduces significant risks similar to automatic deduction features in traditional finance. To minimize gas costs and overhead, many applications default to "unlimited authorization," allowing a contract to access all assets of a specific token type rather than just the amount needed for a single transaction. Woofun AI notes that users frequently mistake disconnecting a wallet from a web interface for revoking authorization. In reality, disconnecting only prevents the webpage from accessing current wallet data; it does not cancel the on-chain Approval instructions. Consequently, even after closing a browser or deleting an app, the authorized contract retains the ability to drain funds if the protocol is later compromised or its logic altered.
The danger extends beyond malicious actors to include legitimate protocols that may suffer breaches, private key leaks, or logic upgrades. For users, assets remain in their accounts, yet authorized entities retain access, creating a latent threat that can be activated at any time. Mitigation strategies suggest avoiding unlimited authorizations, yet completely rejecting Approval is impractical in a DeFi environment where it is a core component of asset access. The industry must shift from one-time confirmations to continuous permission management systems. Wallets must act as the first line of defense, providing proactive security measures such as marking risky tokens and addresses, as seen with tools like imToken.
Furthermore, wallets are increasingly adopting structured analysis and readable displays of signature content during critical steps like DApp logins and token exchanges. This approach, aligned with evolving standards like ERC-7730, aims to ensure a "What You See Is What You Sign" experience, making hidden authorization settings more visible and understandable. Woofun AI analysis suggests that while private keys determine account ownership, Approval dictates asset access, making both equally critical for security. Users must rigorously review authorization amounts and promptly revoke unnecessary permissions, while developers and wallet providers must enhance visibility and control mechanisms to prevent future incidents where overlooked approvals lead to massive financial losses.