Reproduced Exploit
Superform: A 1-wei SuperVault share transfer clones the sender's fulfilled-redeem state (maxWithdraw=
Chain
Other
Category
untagged
Date
Jan 1970
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: 63075-malicious-actor-can-overwrite-others-user-state-via-1-wei-va. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC.
Vulnerability classes: vuln/theft
Reproduction: a faithful minimal reproduction of the vulnerable finding — the vulnerable function is reproduced verbatim (marked
@>) with faithful minimal doubles; local deploy, no fork.
Root cause#
A 1-wei SuperVault share transfer clones the sender's fulfilled-redeem state (maxWithdraw=100) onto the recipient via _update, letting the attacker double-withdraw and drain 100 STOLEN-ASSET of another user's escrowed funds to the attacker EOA (escrow drained 200->0; victim's 100 claim left unbacked).
// ─────────────────────────────────────────────────────────────────────────────
// VULNERABLE SuperVault: the ERC20 share token. `_update` is VERBATIM from the
// pre-fix audited source — it copies the sender's ENTIRE SuperVaultState onto
// the recipient on every real-user share transfer.
// ─────────────────────────────────────────────────────────────────────────────
Why it's exploitable here#
A 1-wei SuperVault share transfer clones the sender's fulfilled-redeem state (maxWithdraw=100) onto the recipient via _update, letting the attacker double-withdraw and drain 100 STOLEN-ASSET of another user's escrowed funds to the attacker EOA (escrow drained 200->0; victim's 100 claim left unbacked).
Attack path#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0xbd4fd5a3ce…:
- L230 — SuperVault share token declared: Setup:
SuperVaultis an ERC20 share token, so every share transfer is routed through its_updateoverride. - L231 — Strategy holds redeem state: Setup:
strategyrecords each holder's fulfilled-redeem state (likemaxWithdraw) that the transfer bug will clone. - L234 — Wire vault to strategy and escrow: Setup:
initializelinks the vault to itsstrategyandescrowcontracts. - L246 — Transfer override clones redeem state: Every share transfer runs
_update, which wrongly copies the sender's fulfilled-redeem state onto the recipient. - L264 — Fixed variant initializer: Setup: the patched variant's
initialize, wiring strategy and escrow ahead of the corrected transfer guard. - L269 — Mint shares to a holder: Setup:
mintSharesissues share tokens to a holder — a mint (from==0) the fix must exclude from state-cloning. - L275 — Fixed guard skips mint/escrow legs: The patched check clones redeem state only for real holder-to-holder transfers, excluding zero-address and escrow legs.
PoC#
Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):
cd 63075-malicious-actor-can-overwrite-others-user-state-via-1-wei-va_exp
forge test -vvv
The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: A 1-wei SuperVault share transfer clones the sender's fulfilled-redeem state (maxWithdraw=100) onto the recipient via _update, letting the a. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).
Sources & further analysis#
Reproductions & code
- No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
- AuditVault finding: 63075-malicious-actor-can-overwrite-others-user-state-via-1-wei-va.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: [search "Superform: A 1-wei SuperVault share transfer clones the sender's fulfilled-redeem state (maxWithdraw="](https://defihacklabs.io/explorer/index.html?q=Superform%3A%20A%201-wei%20SuperVault%20share%20transfer%20clones%20the%20sender's%20fulfilled-redeem%20state%20(maxWithdraw%3D).
- Web3Sec X hacked database: search.
- Rekt leaderboard: [search](https://rekt.news/?s=Superform%3A%20A%201-wei%20SuperVault%20share%20transfer%20clones%20the%20sender's%20fulfilled-redeem%20state%20(maxWithdraw%3D).
- Solodit incident search: [search](https://solodit.xyz/issues?search=Superform%3A%20A%201-wei%20SuperVault%20share%20transfer%20clones%20the%20sender's%20fulfilled-redeem%20state%20(maxWithdraw%3D).
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.