Reproduced Exploit
Etherspot CredibleAccountModule — session owner can consume a sibling session
The module verifies that a signer belongs to the smart wallet but never checks that the session named in claim() is the same signer. One active session key can therefore consume another key's claim.
Chain
Other
Category
access-control
Date
Jan 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. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 62848-h-01-sessionkey-owner-can-impersonate-another-session-key-ow. Standalone Foundry PoC and full write-up: 62848-h-01-sessionkey-owner-impersonate-session-key-owner_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/access-control/missing-owner-check · vuln/auth/signature-validation
Reproduction: local synthetic Foundry reduction; the complete passing trace is in output.txt.
Key info#
| Field | Value |
|---|---|
| Loss | SESSION_ONE is consumed by SESSION_TWO; the legitimate key's allocation becomes unavailable. |
| Vulnerable contract | SessionClaimModule.claim in test/62848-h-01-sessionkey-owner-impersonate-session-key-owner.sol |
| Attacker EOA | 0x1111111111111111111111111111111111111111 |
| Attack contract | Exploit |
| Attack tx | Local Foundry Exploit.run() |
| Chain · block · date | Ethereum model · block 0 · synthetic |
| Compiler | Solidity ^0.8.24 |
| Bug class | Session signer not bound to claimed session |
TL;DR#
The module verifies that a signer belongs to the smart wallet but never checks that the session named in claim() is the same signer. One active session key can therefore consume another key's claim.
Background#
Wallets may have many simultaneous time-limited sessions. Each signature must authorize exactly one session identity; checking only wallet ownership is insufficient.
The vulnerable code#
function claim(address sessionKeySigner, address requestedSession, address wallet) external {
require(sessionWallet[sessionKeySigner] == wallet, "signer not wallet session");
require(!claimed[requestedSession], "already claimed");
// @> VULN: requestedSession is not required to equal sessionKeySigner.
claimed[requestedSession] = true;
}
Root cause#
The authorization domain omits the session key parameter. A signature produced by SESSION_TWO is accepted for a call that names SESSION_ONE.
Preconditions#
- The smart wallet has at least two active session keys.
- The claim entrypoint accepts both the recovered signer and a caller-supplied session id.
- No equality check binds those values.
Attack walkthrough#
Exploit.run()enablesSESSION_ONEandSESSION_TWOfor one wallet.- It calls
claim(SESSION_TWO, SESSION_ONE, wallet). SESSION_ONEis marked claimed while SESSION_TWO remains unused; see output.txt:4.
Diagrams#
Remediation#
Decode the claim calldata and require its session key to equal the recovered signer before consuming state. Include the session key in the signed digest and test cross-session claims.
How to reproduce#
cd evm-hack-registry/62848-h-01-sessionkey-owner-impersonate-session-key-owner_exp
forge test -vvvvv
Sources#
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 62848-h-01-sessionkey-owner-impersonate-session-key-owner_exp (evm-hack-registry mirror).
- AuditVault finding: 62848-h-01-sessionkey-owner-can-impersonate-another-session-key-ow.
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.