Reproduced Exploit
Onemind PlatformAuction: unpaid royalty is still subtracted from price
Chain
Other
Category
dos
Date
Oct 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: 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind. Standalone Foundry PoC and full write-up: 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/dos/frozen-funds
Reproduction: faithful local reproduction of AuditVault 57636. After the collection owner is the zero address, the royalty is calculated and subtracted from price even though
_currencyTransferrefuses to send it.
Root cause#
_calculateRoyalty returns address(0) when collectionOwner has been renounced. _currencyTransfer returns false for the zero address. handleRoyalties still subtracts the royalty from the price, so that value stays in the auction.
bool sent = _currencyTransfer(receiver, royalty);
// @> VULN: royalty is subtracted from price even though it was not transferred
price -= royalty;
lastProceeds = price;
On a 1,000 SALE sale the royalty is 100 SALE. The seller receives 900 SALE. The auction keeps 100 SALE.
Attack path#
Impact#
100 SALE of the buyer's payment is locked in the auction and the seller is short that amount. The fixed handleRoyalties subtracts the royalty only when the transfer succeeded, so the seller receives the full 1,000 SALE and the auction balance is 0.
PoC#
cd 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind_exp
forge test -vv
Sources#
- AuditVault finding 57636
- Zokyo, Onemind, 2022-10-18: https://github.com/solodit/solodit_content/blob/main/reports/Zokyo/2022-10-18-Onemind.md
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind_exp (evm-hack-registry mirror).
- AuditVault finding: 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind.
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.