Treasure Marketplace Hacked: Exploit Ongoing

BREAKING – The Treasure Marketplace has been hacked! A bug in the contract allowed attackers to purchase a variety of NFTs, including high value Genesis Legions and Smol Brains, for 0 cost. This is a bug in the exchange itself and is currently affecting ALL listed NFTs.

Users should delist or revoke approval for ANY NFT on the site immediately!

The bug involves setting the purchase quantity to 0, so no value is actually being transferred to purchase these Genesis Legions!

The Arbiscan for the contract is here. This is an example of an exploiting transaction. The transaction input is below, you can see the _quantity has been set to 0.

The marked require statement ensures that the user entered quantity is less than or equal to the amount listed. It does not check that it is not zero! Allowing _quantity to be zero makes the price calculation in _buyItem equal to zero, resulting in zero value transfer in payment.

Founder John Patten promises to make the affected users whole. The hack impact is still ticking up, and it remains to be seen how much he will be on the hook for.

This address seems to be one of the first exploiters. He quickly went on a scooping spree of over 20 txns.

With such a low barrier to entry with this exploit (basically just interacting via Etherscan), many copycats quickly starting exploiting as well. And some dishonest users decided to promote it to their groups…

What a mess. It’s a shame, really. The $MAGIC and Treasure ecosystems are a high energy community with an ethos of free mints and value creation. Lively, creative concepts. All now endangered because of a single missing smart contract line.

Photo of author

Written By BowTiedPickle

Anonymous cartoon pickle inspired by BowTiedBull. Degen chemical engineer, moonlighting as a Solidity developer.

Disclosure

This article may contain links to third-party websites or other content for information purposes. BowTiedIsland may receive a commission at no cost to you if you purchase a product after clicking one of these links. The Third-Party Sites are not under the control of BowTiedIsland, and BowTiedIsland is not responsible for the content of any Third-Party Site. All information contained herein is the opinion of the writer and does not constitute financial advice. We aim to act as a neutral third party and aid in your research and analysis.


The Jungle


Crypto, Investing, and E-Commerce with BowTied Bull

The future is internet based, therefore we have a triangle based approach with crypto, e-commerce business making and Investing in traditional assets

The Culture War with BowTiedRanger

Whether you’re a political junkie or just interested in current events. 

You’ve come to the right place for analysis of the most relevant current events and political issues.

Fitness With BowTiedOx

BowTiedOx provides you a place to find all of his latest programs and guides.

Weekly newsletters that cover fitness, health, and mindset, all grounded in the fundamentals of physiology.

Media Production with BowTied Turkey and BowTied Tamarin

Video is no longer optional.

Don’t get left behind.

Your brand deserves professional videos to engage your audience.

Art & Graphic Design with BowTied Patriot

BowTied Patriot is a graphic artist who specializes in photography, mixed medium custom artwork, and NFT creation.

Join BowTiedPatriot as he dives into making Art in Web3.0 and The Metaverse.

Cooking with BowTiedOctopod

Learn secrets from a fine dining chef for maximum flavor and time-saving efficiency

Newsletters on Ingredients, Techniques and Flavor hacks that will have you eating better. We will never eat bugs!

Meme Warfare with DgenFren

Increase your online engagement, organically influence narratives, and build your online persona by using marketing that your target audience actually wants: memes.

Learn How to Sell with BowTiedSalesGuy

Sales is one of the most transferrable life skills, yet few know how to actually sell.

Traditional sales tactics don’t cut it in today’s hyper competitive world.

Learn the secrets from a Chad Salesman and change your Life forever.

Ecommerce with BowTiedOpossum

Learn the skills to start and build your first online business.

Want to build a business that travels with you?

Learn from an industry veteran that has worked on and with brands you already know.