Reproduced Exploit
Recall — [H-05] Incorrect supply fund transferral in leave()
leave() pays genesisBalance as ETH collateral instead of supply ERC20 — drains other validators
Chain
Other
Category
untagged
Date
Feb 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: 65092-h-05-incorrect-supply-fund-transferral-in-function-leave-can. Standalone Foundry PoC and full write-up: 65092-h-05-incorrect-supply-fund-transferral-in-function-leave-can_exp in the
evm-hack-registrymirror.
Vulnerability classes: severity/high · platform/code4rena · sector/staking · sector/governance
Reproduction: self-contained Foundry PoC with only
forge-std— no fork, no RPC. Full trace: output.txt.
AuditVault taxonomy: lang/solidity · platform/code4rena · has/poc · severity/high · protocol Recall
Key info#
| Impact | HIGH — leave() pays genesisBalance as ETH collateral instead of supply ERC20 — drains other validators |
| Protocol | Recall (IPC / subnet actor) |
| Finding | Code4rena 2025-02-recall · #65092 |
| Report | 2025-02-recall |
| Source | AuditVault |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
leave() pays genesisBalance as ETH collateral instead of supply ERC20 — drains other validators
The vulnerable code#
collateralSource.transferFunds(payable(msg.sender), genesisBal); // @> VULN
Fix: Use supplySource.transferFunds for genesis refunds (as preRelease does).
Root cause#
See vulnerable line above. Reduced synthetic preserves the blamed statement verbatim (@> VULN).
Preconditions#
- Audited Recall / IPC contracts at contest commit
ab5f90b9. - Attack path as described in the Code4rena report.
Attack walkthrough#
- Deploy the synthetic vulnerable surface.
- Execute the attack in
Exploit.run(). - Assert the report's concrete harm (funds / liveness / forged consensus).
Diagrams#
Remediation#
Use supplySource.transferFunds for genesis refunds (as preRelease does).
Sources#
- AuditVault finding
- Code4rena report 2025-02-recall
- Reduced source: code-423n4/2025-02-recall@ab5f90b9
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 65092-h-05-incorrect-supply-fund-transferral-in-function-leave-can_exp (evm-hack-registry mirror).
- AuditVault finding: 65092-h-05-incorrect-supply-fund-transferral-in-function-leave-can.
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.