{"id":3550,"date":"2019-12-23T11:39:25","date_gmt":"2019-12-23T11:39:25","guid":{"rendered":"https:\/\/bitcoinsv.io\/?p=3550"},"modified":"2020-09-28T10:36:03","modified_gmt":"2020-09-28T10:36:03","slug":"bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork","status":"publish","type":"post","link":"https:\/\/bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/","title":{"rendered":"Bitcoin SV \u2013 Blocking potential P2SH replay attack after Genesis hard fork"},"content":{"rendered":"\n

The Bitcoin SV Node team notes the recent public disclosure on\nReddit by Gregory Maxwell (a.k.a. \/u\/nullc) from the Bitcoin Core (BTC) of a\npotential replay attack vector on Bitcoin SV after the \u201cGenesis\u201d hard fork in\nFebruary 2020 which will be deprecating the P2SH (pay-to-script-hash) feature\nthat is not part of the Bitcoin design described by Satoshi Nakamoto.<\/p>\n\n\n\n

The post describes a possible theft via replay attack of P2SH\n(pay-to-script-hash) transactions from the BTC chain that could be executed to\nsteal unsplit funds of BTC users on the Bitcoin SV chain. The Bitcoin SV\nmission is to return Bitcoin to the vision described in Satoshi\u2019s whitepaper\nwhich uses the word \u201chonest\u201d no less than 15 times and we emphatically reject the\nnotion that obvious theft of coins by miners can fall within the definition of \u201chonest\u201d\nbehaviour.<\/p>\n\n\n\n

 We note that Mr. Maxwell\u2019s\npublic disclosure in no way fits the broadly accepted definition of\n\u201cresponsible disclosure\u201d and by describing in detail the steps required to\nexploit and potentially cause loss of funds to BTC users, we would deem it both\nirresponsible to BTC users and poor security practice.  Had the disclosure been made responsibly\naccording the guidelines set out in the Bitcoin SV Responsible Disclosure Policy<\/a>, it likely would have been eligible for a\nsubstantial bug bounty.  It is\nparticularly puzzling to the BSV Node team that the disclosure was made in this\npublic way by a BTC core developer given the users most likely put at greater\nrisk by the disclosure are not <\/em><\/strong>those actively engaged with BSV,\nbut primarily those that are BTC users who may not even be interested in BSV. <\/p>\n\n\n\n

We note for the record that the Bitcoin SV Node team has\npreviously made responsible\ndisclosures<\/a> to the Bitcoin Core and Bitcoin Cash development teams and intend\nto continuing to do so as part of our commitment to professionalizing Bitcoin\nsoftware development.<\/p>\n\n\n\n

The Bitcoin SV team had been previously aware of variations of this attack vector and did in fact have a plan in place to mitigate it, in part involving a coalition of honest miners forcibly rejecting blocks that contain obvious theft attempts in order to protect the integrity of the chain. We note that this mechanism has subtle but important differences to an explicit consensus rule although has a similar effect. However, due to this public disclosure and explicit description of the method, we believe there is now a significantly higher risk of a dishonest miner attempting to execute this theft attack with a large amount of hashpower and consequently the economic cost to honest miners of implementing the proposed mitigation method is likely to be substantially higher as well. As such the Bitcoin SV team has determined that a stronger mitigation is now required.<\/p>\n\n\n\n

We note for the record that Mr. Maxwell\u2019s post did bring to\nour attention some aspects of this issue that the Bitcoin SV team had not yet fully\nconsidered.  So we thank him for the\ntechnical review and shedding some new light on the matter.   <\/p>\n\n\n\n

In fact, this event demonstrates that the public review\nprocess implemented by the Bitcoin SV team, in advance of finalizing the code\nin early January, is achieving the intended goal of improving security outcomes\nfor the ecosystem.<\/p>\n\n\n\n

Mitigation<\/h2>\n\n\n\n

In response, the Bitcoin SV Node team will update the \u201cGenesis\u201d\nhard fork specification by upgrading the rule rejecting the P2SH script pattern\nfrom a policy rule to a consensus rule<\/strong>. \nThat is the specific script template \u201cOP_HASH160 <hash> OP_EQUAL\u201d\nwill not be allowed in new outputs and this rule will be directly implemented\nin the Bitcoin SV Node software.  Whilst\nunfortunate to restrict the usage of a particular script pattern, we note that\nthe same effect can be achieved using variations of the script pattern e.g.\n\u201cOP_SHA256 OP_RIPEMD160 <hash> OP_EQUAL\u201d.<\/p>\n\n\n\n

This change closes the attack vector and mitigates the need\nfor honest miners to forcibly reject blocks containing theft transactions.  Whilst this could have triggered a valuable\ndemonstration of the principle of honest miners acting punitively against dishonest\nminers, the public disclosure by Mr. Maxwell raises the potential cost to those\nminers to an unacceptable level.<\/p>\n\n\n\n

Segwit script pattern<\/h3>\n\n\n\n

To address an additional but unrelated issue related to native Segwit transaction replay an additional measure will be taken. This will be detailed in a later post. <\/p>\n\n\n\n

An update to the Genesis hard fork specification will be published shortly and the code changes included in the next beta release of Bitcoin SV.  Release notification will occur through the usual channels noted here: https:\/\/bitcoinsv.io\/genesis-hard-fork\/<\/a> <\/p>\n\n\n\n

Bug Bounty<\/h2>\n\n\n\n

We take this opportunity to remind the security research\ncommunity of the substantial bug\nbounty program<\/a> offered by Bitcoin SV with a maximum reward of up to $100,000\nUSD (payable in BSV), rivalling the largest bug bounty programs in the world\noffered by multinational technology giants. <\/p>\n\n\n\n

We offer a top-tier bug bounty program in order to encourage<\/strong> further scrutiny, review and\nresponsible disclosures from all parties. \nGregory Maxwell is of course eligible to participate so long as he\nadheres to principles of Responsible Disclosure in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"

The Bitcoin SV Node team notes the recent public disclosure on Reddit by Gregory Maxwell (a.k.a. \/u\/nullc) from the Bitcoin Core (BTC) of a potential replay attack vector on Bitcoin SV after the \u201cGenesis\u201d hard fork in February 2020 which will be deprecating the P2SH (pay-to-script-hash) feature that is not part of the Bitcoin design […]<\/p>\n","protected":false},"author":4,"featured_media":4261,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[73],"tags":[],"lang":"en","translations":{"en":3550},"yoast_head":"\nBitcoin SV \u2013 Blocking potential P2SH replay attack after Genesis hard fork - Bitcoin SV<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bitcoin SV \u2013 Blocking potential P2SH replay attack after Genesis hard fork - Bitcoin SV\" \/>\n<meta property=\"og:description\" content=\"The Bitcoin SV Node team notes the recent public disclosure on Reddit by Gregory Maxwell (a.k.a. \/u\/nullc) from the Bitcoin Core (BTC) of a potential replay attack vector on Bitcoin SV after the \u201cGenesis\u201d hard fork in February 2020 which will be deprecating the P2SH (pay-to-script-hash) feature that is not part of the Bitcoin design […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/\" \/>\n<meta property=\"og:site_name\" content=\"Bitcoin SV\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-23T11:39:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-28T10:36:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/09\/bitcoin-sv-bsv-mines-world-record-128mb-blocks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1234\" \/>\n\t<meta property=\"og:image:height\" content=\"616\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@BitcoinSVNode\" \/>\n<meta name=\"twitter:site\" content=\"@BitcoinSVNode\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/bitcoinsv.io\/#organization\",\"name\":\"Bitcoin SV\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"sameAs\":[\"https:\/\/twitter.com\/BitcoinSVNode\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/10\/bsv-logo-wh-medium.png\",\"width\":800,\"height\":144,\"caption\":\"Bitcoin SV\"},\"image\":{\"@id\":\"https:\/\/bitcoinsv.io\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bitcoinsv.io\/#website\",\"url\":\"https:\/\/bitcoinsv.io\/\",\"name\":\"Bitcoin SV\",\"description\":\"Just another WordPress site\",\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/bitcoinsv.io\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bitcoinsv.io\/wp-content\/uploads\/2020\/09\/bitcoin-sv-bsv-mines-world-record-128mb-blocks.jpg\",\"width\":1234,\"height\":616},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#webpage\",\"url\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/\",\"name\":\"Bitcoin SV \\u2013 Blocking potential P2SH replay attack after Genesis hard fork - Bitcoin SV\",\"isPartOf\":{\"@id\":\"https:\/\/bitcoinsv.io\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#primaryimage\"},\"datePublished\":\"2019-12-23T11:39:25+00:00\",\"dateModified\":\"2020-09-28T10:36:03+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#webpage\"},\"author\":{\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/d1b90c2f0b7b27b52e59ef856a57ab4e\"},\"headline\":\"Bitcoin SV \\u2013 Blocking potential P2SH replay attack after Genesis hard fork\",\"datePublished\":\"2019-12-23T11:39:25+00:00\",\"dateModified\":\"2020-09-28T10:36:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#webpage\"},\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"image\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/12\/23\/bitcoin-sv-blocking-potential-p2sh-replay-attack-after-genesis-hard-fork\/#primaryimage\"},\"articleSection\":\"Articles\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/d1b90c2f0b7b27b52e59ef856a57ab4e\",\"name\":\"Steve Shadders\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d08dfcc7367f9cdd71cedbd77082b84f?s=96&d=mm&r=g\",\"caption\":\"Steve Shadders\"},\"description\":\"Steve has been involved in Bitcoin infrastructure since early 2011. In his role, he contributes his ecosystem-wide perspective, to support building the mining and UX infrastructure, needed to enable Satoshi\\u2019s Vision.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/3550"}],"collection":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/comments?post=3550"}],"version-history":[{"count":2,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/3550\/revisions"}],"predecessor-version":[{"id":4317,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/3550\/revisions\/4317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/media\/4261"}],"wp:attachment":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/media?parent=3550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/categories?post=3550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/tags?post=3550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}