Reproduced Exploit
Notional — malicious treasury manager can burn treasury tokens via makerFee
1. Treasury manager signs 0x orders to sell harvested COMP for WETH. 2. _validateOrder never requires makerFee == 0 and takerFee == 0. 3. Malicious manager sets makerFee = full WETH proceeds to itself. 4. Treasury COMP leaves; manager keeps COMP + WETH; treasury nets 0.
Chain
Other
Category
untagged
Date
Jan 2022
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: 24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b. Standalone Foundry PoC and full write-up: 24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b_exp in the
evm-hack-registrymirror.
Vulnerability classes: fee-calculation · direct-drain · fot-slippage · treasury-multisig
Reproduction: a self-contained Foundry PoC that compiles & runs in an isolated project with only
forge-std— no fork, no RPC, noanvil_state. Full trace: output.txt. PoC: test/24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b_exp.sol.
Key info#
| Impact | HIGH — manager signs 0x order with makerFee = proceeds; treasury loses assets for free |
| Protocol | Notional |
| Vulnerable code | EIP1271Wallet |
| Bug class | fee-calculation |
| Finding | Code4rena — Notional, 2022-01 · #24657 · reporter leastwood / shw |
| Report | code4rena.com/reports/2022-01-notional |
| Source | AuditVault |
| Status | Audit finding — caught in review, not exploited on-chain. Reproduced as a standalone local PoC. |
| Compiler | ^0.8.24 (PoC) |
This is an audit finding, not a historical on-chain incident. The PoC keeps
the vulnerable logic verbatim (marked @> VULN) and reduces dependencies
to the minimum needed to show the claimed harm.
TL;DR#
- Treasury manager signs 0x orders to sell harvested COMP for WETH.
- _validateOrder never requires makerFee == 0 and takerFee == 0.
- Malicious manager sets makerFee = full WETH proceeds to itself.
- Treasury COMP leaves; manager keeps COMP + WETH; treasury nets 0.
The vulnerable code#
See test/24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b.sol — the @> VULN marker is on the blamed line (line 155 in the synthetic).
Root cause#
Missing zero-fee checks in EIP1271Wallet._validateOrder.
Preconditions#
Protocol operating conditions that make the path reachable (see finding report). No exotic privileges beyond those the real call path requires.
Attack walkthrough#
From output.txt: the Exploit.run() path executes the attack end-to-end and requires the harm.
Diagrams#
Impact#
Treasury assets burned/donated to the manager at no cost to the taker path.
Sources#
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b_exp (evm-hack-registry mirror).
- AuditVault finding: 24657-h-03-a-malicious-treasury-manager-can-burn-treasury-tokens-b.
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.