Reproduced Exploit

Onemind PlatformAuction: unpaid royalty is still subtracted from price

Oct 2022•Other•dos•2 min read

Chain

Other

Category

dos

Date

Oct 2022

Source

AuditVault

EVM Playground

Source-level debugger — step opcodes and Solidity in sync

evm-hack-analyzer

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.

Loading fork state…

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-registry mirror.


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 _currencyTransfer refuses 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.

SOLIDITY
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#

flowchart TD A["Collection owner is renounced to the zero address"] --> B["Buyer pays 1000 SALE"] B --> C["Royalty receiver is address 0"] C --> D["currencyTransfer returns false and sends nothing"] D --> E["Price is still reduced by 100 SALE"] E --> F["Seller gets 900 and 100 stays in the auction"]

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#

BASH
cd 57636-royalties-might-get-stuck-on-the-contract-zokyo-none-onemind_exp
forge test -vv

Sources#


Sources & further analysis#

Reproductions & code

Alerts & third-party analyses

  • Web3Sec X hacked database: search.
  • Rekt leaderboard: search.
  • Solodit incident search: search.

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.