Reproduced Exploit
Etherspot — a gas-tank user withdraws the balance that should repay sponsored gas
The paymaster checks that a user will pay, executes the sponsored operation, and only then asks an admin to call repaySponsoredTransaction. _postOp adds to sponsored and does not escrow tokens. gasTankWithdraw transfers balances[user] with no look at that debt.
Chain
Other
Category
logic
Date
Sep 2025
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 62850-h-03-users-can-escape-paying-for-the-tx-gas-shieldify-none-e. Standalone Foundry PoC and full write-up: 62850-h-03-users-can-escape-paying-for-the-tx-gas-shieldify-none-e_exp in the
evm-hack-registrymirror.
Vulnerability classes:
vuln/logic/missing-check·vuln/logic/fee-calculation
Reproduction: a self-contained Foundry PoC that compiles and runs offline with only
forge-std— no fork and no RPC. Trace: output.txt. PoC: test/62850-h-03-users-can-escape-paying-for-the-tx-gas-shieldify-none-e_exp.sol.
Key info#
| Impact | HIGH — the user pulls back 1,000 GAS after a 1,000 GAS sponsorship; the fee receiver is paid 0 |
| Protocol | Etherspot GasTankPaymaster.gasTankWithdraw |
| Vulnerable code | token.transfer of the full balance with no read of the unpaid sponsorship |
| Bug class | Sponsored gas is recorded after the fact and can be withdrawn first |
| Finding | Shieldify H-03 — Etherspot GasTank paymaster · id 62850 |
| Report | Shieldify review |
| Source | AuditVault finding |
| Compiler | solc 0.8.27, cancun, via IR |
TL;DR#
The paymaster checks that a user will pay, executes the sponsored operation, and only then asks an admin to call repaySponsoredTransaction. _postOp adds to sponsored and does not escrow tokens. gasTankWithdraw transfers balances[user] with no look at that debt.
The user has 1,000 GAS on deposit. A sponsorship of 1,000 GAS is recorded. The user withdraws 1,000. The owner's repay reverts with insufficient balance. The fee receiver stays at 0, and sponsored is still 1,000.
The fixed tank sets isWithdrawPaused in postOp. The withdraw reverts, and the repay credits the fee receiver with 1,000.
The vulnerable code#
function gasTankWithdraw(uint256 amount) external {
uint256 currentBalance = balances[msg.sender];
if (currentBalance < amount) revert("GasTankPaymaster_InsufficientBalance");
token.transfer(msg.sender, amount); // @> VULN: unpaid sponsored gas is ignored
balances[msg.sender] = currentBalance - amount;
}
function gasTankWithdraw(uint256 amount) external {
+ require(!isWithdrawPaused[msg.sender], "withdraw paused");
uint256 currentBalance = balances[msg.sender];
postOp sets the pause. repaySponsoredTransaction clears it once sponsored is zero.
Attack walkthrough#
- The tank already holds the user's 1,000 GAS deposit. The user's wallet is empty.
postOprecords a 1,000 GAS sponsorship. The token balance is not reduced.gasTankWithdraw(1000)transfers the tokens back. There is no pause and no debt check.repaySponsoredTransactionreverts. The fee receiver's internal balance stays 0. The debt is still 1,000.
Diagrams#
Impact#
The paymaster has already paid for the user operation. The user leaves with the entire deposit, so the fee receiver cannot be repaid. In this run the sponsored fee equals the deposit, so the escaped amount is 1,000 GAS.
Sources#
- AuditVault 62850
- Shieldify Etherspot GasTank review
- etherspot-modular-accounts audit branch —
gasTankWithdrawandrepaySponsoredTransaction
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 62850-h-03-users-can-escape-paying-for-the-tx-gas-shieldify-none-e_exp (evm-hack-registry mirror).
- AuditVault finding: 62850-h-03-users-can-escape-paying-for-the-tx-gas-shieldify-none-e.
Alerts & third-party analyses
These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.