EIP-7702 Broke Your tx.origin Check: How Ethereum's Pectra Upgrade Created a New Class of Account Confusion Vulnerabilities

On May 7, 2025, Ethereum's Pectra upgrade went live. Among 11 EIPs, one change quietly invalidated a security assumption that thousands of deployed contracts rely on: EIP-7702 made EOAs capable of ...

By · · 1 min read
EIP-7702 Broke Your tx.origin Check: How Ethereum's Pectra Upgrade Created a New Class of Account Confusion Vulnerabilities

Source: DEV Community

On May 7, 2025, Ethereum's Pectra upgrade went live. Among 11 EIPs, one change quietly invalidated a security assumption that thousands of deployed contracts rely on: EIP-7702 made EOAs capable of executing smart contract code. The result? Every contract that uses tx.origin == msg.sender as a "is this a real user?" check is now bypassable. And the blast radius extends far beyond that single pattern — into reentrancy guards, gas sponsorship flows, and the entire mental model of what an "account" means on Ethereum. This article breaks down the concrete attack vectors, shows vulnerable code patterns with fixes, and explains why this isn't just a theoretical concern — it's actively exploitable on mainnet today. The Old World: EOAs vs. Contracts Before Pectra, Ethereum had a clean separation: EOAs (Externally Owned Accounts): Controlled by private keys. Can initiate transactions. Cannot execute arbitrary code. Contract accounts: Have code. Can execute logic. Cannot initiate transactions ind

Similar Topics

#artificial intelligence (31552) #ai (16747) #crypto (15110) #bitcoin (14310) #featured (13553) #news & insights (13064) #crypto news (11112) #research (8564) #news (7648) #bitcoin news (6886) #web/tech (5030) #btc (4998) #business (4341) #adoption (4116) #uncategorized (4013) #programming (3999) #xrp (3839) #regulation (3765) #politics (3519) #bitcoin price (2922)

Related Posts

Trending on ShareHub

Latest on ShareHub

Browse Topics

#artificial intelligence (31552) #data science (24017) #ai (16738) #generative ai (15034) #crypto (14987) #machine learning (14680) #bitcoin (14229) #featured (13550) #news & insights (13064) #crypto news (11082)

Around the Network