A hacker temporarily replaced the code of one of Binance's hot wallets using EIP-7702. After obtaining a valid signature from the private key, the attacker set delegation to their own sweeper contract. As a result, funds were withdrawn, including ETH and other tokens, with significant amounts of stablecoins among them.
EIP-7702 Temporarily Turns an EOA into a Smart Contract
The EIP-7702 mechanism (a feature from the Ethereum Pectra upgrade) allows a standard EOA address to act as a smart contract for a short period if a valid owner signature is provided. With this signature, the attacker was able to delegate control to a contract they managed and withdraw assets.
Bundle of ~50 Authorizations to Match the Correct Nonce
To increase the chances of success, the attacker prepared around 50 authorizations with sequential nonces in advance, not knowing the current value at execution time, and sent them simultaneously. The network accepted only the transaction with the matching nonce, while the others were rejected.
