T
iTokenly

TreasureDAO hack — March 2022

Verified — 4 sourcesLast checked August 1, 2026

Incident facts

Date of incident
Publicly disclosedMarch 3, 2022
Target typeNFT project or marketplace
Loss$1,400,000Price at time of incident
MethodContract logic errorMissing zero-check in the TreasureMarketplace buyItem() function. Total price was computed as _pricePerItem multiplied by the caller-supplied _quantity, and the only validation was that the listing held at least the requested quantity. Passing _quantity = 0 satisfied that check, produced a total price of zero, and still executed the NFT transfer, so any listed item could be taken for no MAGIC. PeckShield attributed the bug to the contract failing to distinguish ERC-721 from ERC-1155 listings and pricing an ERC-721 as an ERC-1155 with an untrusted zero quantity.
ChainsArbitrum
OutcomePartially recovered

What happened

On 3 March 2022 an attacker took NFTs from Treasure's marketplace on Arbitrum without paying for them. The TreasureMarketplace contract calculated a purchase total as the price per item multiplied by a caller-supplied quantity, and validated only that the listing held at least the requested quantity. Passing a quantity of zero satisfied that check, produced a total price of zero, and still executed the NFT transfer. CertiK, which published a post-mortem the same day, said the fix was to require the quantity to be greater than zero. Fairyproof's independent code analysis reached the same conclusion, noting the function checked listed quantity where it should have checked that the amount paid met the listing price. PeckShield traced the defect to the contract mispricing an ERC-721 as an ERC-1155 with an untrusted zero quantity.

Contemporaneous reporting put the count at more than 100 NFTs, mostly from the Smol Brains and Legions collections. The widely repeated figure of roughly 426,500 MAGIC, about $1.4 million, is narrower than it appears: PeckShield's count, as relayed by CryptoPotato, applies to 17 Smol Brains NFTs taken by a single attacker address. CoinDesk separately valued the stolen Smol Brains at over $1.4 million at the time of the attack. No published source gives a verified total across all 100-plus NFTs and all taker addresses, so $1.4 million should be read as a floor for a partially documented loss rather than a settled total.

Treasure froze the marketplace. Community members traced the taker addresses publicly and NFTs began being returned within hours. Co-founder John Patten said the project would cover the cost of the exploit and offered his own Smol Brains holdings toward it, and the DAO said users who did not get their NFTs back would be made whole under a community vote. MAGIC fell about 40% before recovering to around $3.34.

Sources

  1. CoinDeskSecondary · retrieved 2026-08-01
  2. Bitcoin.com News (reporting CertiK post-mortem)Secondary · retrieved 2026-08-01
  3. FairyproofSecondary · retrieved 2026-08-01
  4. CryptoPotatoSecondary · retrieved 2026-08-01

Cite this

This data is published under CC BY 4.0. You may reuse it, including commercially, as long as you credit iTokenly and link back.

iTokenly Hack Registry, "TreasureDAO hack — March 2022", iTokenly, accessed 2026-08-01, https://itokenly.com/hacks/treasuredao
https://itokenly.com/hacks/treasuredao

Permalinks never change. If an entry is renamed, the old address keeps working.

Spotted an error? Write to [email protected]. Corrections to published figures are logged on this page. See the methodology for how entries are checked.