Reproduced Exploit
Umami MarinateV2: delisted marinator rewards are never collected
Chain
Other
Category
dos
Date
Sep 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: 57560-issues-with-token-transfers-and-rewards-when-a-marinator-is. Standalone Foundry PoC and full write-up: 57560-issues-with-token-transfers-and-rewards-when-a-marinator-is_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/dos/frozen-funds
Reproduction: faithful local reproduction of AuditVault 57560. Removing a whitelisted marinator does not pay it, and the transfer hook collects rewards only while
isWhitelistedis true.
Root cause#
removeFromContractWhitelist is permissionless and does not pay the marinator. _beforeTokenTransfer then skips _collect for any party that is no longer whitelisted. A's pending rewards are never written to toBePaid. After A transfers its mUMAMI away, relisting A cannot recover them because A's balance is zero. totalMultipliedStaked is also left at 300 while supply is 200, because the delisted sender's stake is not removed and the recipient's receipt is added.
// @> VULN: a delisted marinator is skipped, so its rewards are never collected
if (isWhitelisted(from)) _collect(from);
if (isWhitelisted(to)) _collect(to);
Attack path#
Impact#
100 RWD remains in MarinateV2 after B withdraws and after A is whitelisted again. A's reward balance stays 0. The fixed removal pays A before clearing the whitelist, and a later transfer requires both parties to be whitelisted, so the reward balance ends at 0.
PoC#
cd 57560-issues-with-token-transfers-and-rewards-when-a-marinator-is_exp
forge test -vv
Sources#
- AuditVault finding 57560
- Zokyo, Umami, 2022-09-07: https://github.com/solodit/solodit_content/blob/main/reports/Zokyo/2022-09-07-Umami%20.md
- MarinateV2 hooks: https://github.com/UmamiDAO/marinateV2/blob/main/contracts/MarinateV2.sol
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 57560-issues-with-token-transfers-and-rewards-when-a-marinator-is_exp (evm-hack-registry mirror).
- AuditVault finding: 57560-issues-with-token-transfers-and-rewards-when-a-marinator-is.
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.