{"id":963,"date":"2022-01-26T01:41:09","date_gmt":"2022-01-26T08:41:09","guid":{"rendered":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/?p=963"},"modified":"2022-01-26T02:00:08","modified_gmt":"2022-01-26T09:00:08","slug":"how-a-bug-allowed-users-to-turn-1800-to-196000","status":"publish","type":"post","link":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/2022\/01\/26\/how-a-bug-allowed-users-to-turn-1800-to-196000\/","title":{"rendered":"How a bug allowed users to turn $1800 to $196,000"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" data-src=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/OpenSea-Full-Logo-dark-1024x234.png\" alt=\"\" class=\"wp-image-965 lazyload\" width=\"594\" height=\"135\" data-srcset=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/OpenSea-Full-Logo-dark-1024x234.png 1024w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/OpenSea-Full-Logo-dark-300x69.png 300w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/OpenSea-Full-Logo-dark-768x176.png 768w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/OpenSea-Full-Logo-dark.png 1311w\" data-sizes=\"(max-width: 594px) 100vw, 594px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 594px; --smush-placeholder-aspect-ratio: 594\/135;\" \/><figcaption>OpenSea Logo, Source: https:\/\/docs.opensea.io\/docs\/logos<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\">On the early morning of January 24, 2022, the popular non-fungible token (or NFT) marketplace &#8220;OpenSea&#8221; was subject to the theft of over 1 million USD worth of NFTs<sup>[1]<\/sup>. Users of the platform were able to strategically exploit a design flaw within the website, which allowed them to purchase expensive NFTs for significantly lower than what they were listed for on the exchange. These same users then resold their newly purchased NFTs at a substantial profit. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One user (by the username of TBALLER) reported on Twitter<sup>[2]<\/sup> that one of their <a href=\"https:\/\/opensea.io\/assets\/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\/9991\">Bored Ape NFT&#8217;s<\/a> was sold to one of the exploiters for 0.77 ETH (~$1800 USD at the time of the attack), which was quickly sold at a profit for 84.2 ETH (~$196,000 USD at the time of the attack) by the exploiter.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" data-src=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-1024x291.png\" alt=\"\" class=\"wp-image-974 lazyload\" width=\"833\" height=\"236\" data-srcset=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-1024x291.png 1024w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-300x85.png 300w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-768x218.png 768w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-1536x437.png 1536w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401-1568x446.png 1568w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/Screenshot-2022-01-26-001401.png 1875w\" data-sizes=\"(max-width: 833px) 100vw, 833px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 833px; --smush-placeholder-aspect-ratio: 833\/236;\" \/><figcaption>Transaction History of TBALLER&#8217;s Bored Ape NFT, Source: https:\/\/opensea.io\/assets\/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d\/9991<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">So what exactly happened?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Although the transactions of NFTs on OpenSea are recorded on the blockchain and cannot be tampered with, users were still able to purchase NFTs for the incorrect prices. So what gives?<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" data-src=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/How-Smart-Contracts-Works-1-1024x552.png\" alt=\"\" class=\"wp-image-977 lazyload\" width=\"718\" height=\"387\" data-srcset=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/How-Smart-Contracts-Works-1-1024x552.png 1024w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/How-Smart-Contracts-Works-1-300x162.png 300w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/How-Smart-Contracts-Works-1-768x414.png 768w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/How-Smart-Contracts-Works-1.png 1041w\" data-sizes=\"(max-width: 718px) 100vw, 718px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 718px; --smush-placeholder-aspect-ratio: 718\/387;\" \/><figcaption>How an NFT Transaction Works, Source: https:\/\/2muchcoffee.com\/blog\/how-to-build-an-opensea-like-nft-marketplace\/<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To start, OpenSea actually records transactions differently. Instead of waiting around for blockchain confirmations on the Ethereum network (which could take hours<sup>[2]<\/sup>), OpenSea settles the transactions directly on their website even if the transaction on the Ethereum network has not settled (this is often called as an &#8220;off-chain transaction). With that, when users on the marketplace list their NFTs and want to change the price to a substantially higher price, they would need to cancel the original listing and relist their NFT again. However, relisting their NFT requires a &#8220;gas fee&#8221;<sup>[3]<\/sup> which can be in the hundreds of dollars, because the old listing must be marked as cancelled on the blockchain. So to combat this, users circumvent the gas fee by transferring their NFT to an extra wallet and back to relist it. However, as mentioned before, the OpenSea website may recognize these new listings, but the old listings on the blockchain are still present because the gas fees were never paid.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This inherent flaw of off-chain transactions is what users exploited. Despite the old transactions being cancelled on OpenSea, they were still active on the blockchain and can be accessed through the OpenSea API. Keen users were then able to use the OpenSea API to purchase numerous amounts of NFTs at extremely reduced prices because typically the old listings of the NFTs had lower prices than the new listings due to the exponential growth in value of NFTs within the past few months.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" data-src=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/chart-1024x636.png\" alt=\"\" class=\"wp-image-979 lazyload\" width=\"643\" height=\"399\" data-srcset=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/chart-1024x636.png 1024w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/chart-300x186.png 300w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/chart-768x477.png 768w, https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-content\/uploads\/sites\/115\/2022\/01\/chart.png 1288w\" data-sizes=\"(max-width: 643px) 100vw, 643px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 643px; --smush-placeholder-aspect-ratio: 643\/399;\" \/><figcaption>Growing Demand for NFTs, Source: https:\/\/www.reuters.com\/technology\/nft-sales-volume-surges-25-bln-2021-first-half-2021-07-05\/<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What can be learned from this?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After the incident has taken the public&#8217;s attention, OpenSea has issued a statement where it promises to reimburse those affected by the exploit<sup>[4]<\/sup>. This has been the only statement OpenSea has made regarding the exploit at this time. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, the exploit has been reported as early as January 1, 2022, which can be seen by the tweet below.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"twitter-tweet\"><blockquote class=\"twitter-tweet\" data-lang=\"en\"><p lang=\"en\" dir=\"ltr\">.<a href=\"https:\/\/twitter.com\/ACYCapital?ref_src=twsrc%5Etfw\">@ACYCapital<\/a> purchased my <a href=\"https:\/\/twitter.com\/BoredApeYC?ref_src=twsrc%5Etfw\">@BoredApeYC<\/a> using the <a href=\"https:\/\/twitter.com\/opensea?ref_src=twsrc%5Etfw\">@opensea<\/a> hack that allows a prior listed ape to be sold even once it\u2019s been taken out of a wallet. I\u2019m pleading for this ape to be returned. I\u2019ll pay whatever fees were incurred.<\/p>&mdash; Carson\u1d4d\u1d50 \ud83c\udf4c\ud83d\udc3a (@carsonturner) <a href=\"https:\/\/twitter.com\/carsonturner\/status\/1477414895834513413?ref_src=twsrc%5Etfw\">January 1, 2022<\/a><\/blockquote><\/div>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It is currently unclear whether OpenSea was aware of such exploits or simply turned a blind eye towards its user base and their complaints regarding the exploits. With that, it is clear to see the importance of taking feedback from your customer base regarding severe issues such as vulnerabilities in your company&#8217;s system because one day, it may lead to millions of dollars in losses for your company.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">References<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">[1] <a href=\"https:\/\/www.bloomberg.com\/news\/articles\/2022-01-24\/how-traders-bought-1-million-in-nfts-at-massive-discount-due-to-an-opensea-bug\">https:\/\/www.bloomberg.com\/news\/articles\/2022-01-24\/how-traders-bought-1-million-in-nfts-at-massive-discount-due-to-an-opensea-bug<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[2] <a href=\"https:\/\/twitter.com\/T_BALLER6\/status\/1485523314621632514\"> https:\/\/twitter.com\/T_BALLER6\/status\/1485523314621632514<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[3] <a href=\"https:\/\/etherscan.io\/gastracker\">https:\/\/etherscan.io\/gastracker<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[4] <a href=\"https:\/\/www.theverge.com\/2022\/1\/24\/22899125\/opensea-bug-bored-ape-nfts-smart-contract-listings-cancellation\">https:\/\/www.theverge.com\/2022\/1\/24\/22899125\/opensea-bug-bored-ape-nfts-smart-contract-listings-cancellation<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[5] <a href=\"https:\/\/www.theblockcrypto.com\/post\/131443\/opensea-reimburses-users-sold-nfts-below-market-value-ui-issue\">https:\/\/www.theblockcrypto.com\/post\/131443\/opensea-reimburses-users-sold-nfts-below-market-value-ui-issue<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[6] <a href=\"https:\/\/www.bloomberg.com\/news\/articles\/2022-01-24\/how-traders-bought-1-million-in-nfts-at-massive-discount-due-to-an-opensea-bug\">https:\/\/www.bloomberg.com\/news\/articles\/2022-01-24\/how-traders-bought-1-million-in-nfts-at-massive-discount-due-to-an-opensea-bug<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On the early morning of January 24, 2022, the popular non-fungible token (or NFT) marketplace &#8220;OpenSea&#8221; was subject to the theft of over 1 million USD worth of NFTs[1]. Users of the platform were able to strategically exploit a design flaw within the website, which allowed them to purchase expensive NFTs for significantly lower than &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/2022\/01\/26\/how-a-bug-allowed-users-to-turn-1800-to-196000\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How a bug allowed users to turn $1800 to $196,000&#8221;<\/span><\/a><\/p>\n","protected":false},"author":352,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-963","post","type-post","status-publish","format-standard","hentry","category-cpsc-329-602-w22","entry"],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Joshua Tolentino","author_link":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/author\/joshua-tolentino\/"},"_links":{"self":[{"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/posts\/963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/users\/352"}],"replies":[{"embeddable":true,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/comments?post=963"}],"version-history":[{"count":13,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/posts\/963\/revisions"}],"predecessor-version":[{"id":990,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/posts\/963\/revisions\/990"}],"wp:attachment":[{"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/media?parent=963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/categories?post=963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpsites.ucalgary.ca\/isec-601-f21\/wp-json\/wp\/v2\/tags?post=963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}