Skip to content
Smart contracts Write-up Advanced

How My EOA Was Hijacked by an EIP-7702 Delegation on Sepolia (hopefully just it) and How to Revoke It

The author's Ethereum testnet wallet had an EIP-7702 delegation installed that forwarded all incoming ETH to a hardcoded attacker address. The author believes they signed a phishing transaction, and any funds sent to the wallet were immediately swept away.

Evgenii Follow

Published on coinsbench.com

Recently, I needed test tokens for a small task on Sepolia. My wallet was empty, even though I was sure there were test coins left.

Evgenii, on coinsbench.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the wallet's private key was compromised and the attacker used it to sign an EIP-7702 delegation to a malicious contract that sweeps incoming funds.

Impact

Any ETH sent to the wallet was immediately forwarded to the attacker's address, leaving the wallet unable to pay its own transaction fees.

What the attacker needed

Compromised private key; attacker can sign as the victim; testnet only

The fix

The delegation can be revoked by signing a new EIP-7702 authorisation that delegates to the zero address and submitting it from a different funded account.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

An Ethereum wallet is controlled by a private key, and whoever holds that key can act as the wallet. EIP-7702 is a newer feature that lets a wallet temporarily hand control of itself to a smart contract, so if someone tricks you into signing that handover, the contract can move your funds. Here the contract was set up to send every incoming coin straight to someone else.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by Evgenii

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.