{"id":2587,"date":"2019-03-01T08:00:16","date_gmt":"2019-03-01T08:00:16","guid":{"rendered":"https:\/\/bitcoinsv.io\/?p=2587"},"modified":"2020-09-28T05:58:25","modified_gmt":"2020-09-28T05:58:25","slug":"denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1","status":"publish","type":"post","link":"https:\/\/bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/","title":{"rendered":"Denial of Service Vulnerabilities Repaired in Bitcoin SV version 0.1.1"},"content":{"rendered":"\n

As part of its commitment to professionalise the Bitcoin development process, the Bitcoin SV Node implementation team engaged the services of Trail of Bits, a leading cybersecurity research company with expertise in blockchain technologies, to perform a security audit of the Bitcoin SV Node implementation source code. Three of the vulnerabilities that were discovered by this security audit could be exploited to perform denial of service attacks on Bitcoin.<\/span><\/p>\n\n\n\n

These vulnerabilities were responsibly disclosed to the software development teams of Bitcoin Unlimited, Bitcoin XT, Bitcoin ABC, and Bitcoin Core. An analysis of the vulnerable portions of the source code indicated that these software implementations may be affected by these vulnerabilities because the source code for these implementations are derived from the same origin.<\/span><\/p>\n\n\n\n

These vulnerabilities have been addressed in <\/span>release 0.1.1 of Bitcoin SV<\/span><\/a>. The Bitcoin SV Node implementation team strongly encourages all users of the Bitcoin SV Node implementation to upgrade their software as quickly as possible.<\/span><\/p>\n\n\n\n

CVE-2018-1000891 – Uncontrolled resource consumption when receiving messages with invalid checksums<\/span><\/h2>\n\n\n\n

Impact of vulnerability: Denial of Service<\/span>
Severity: Medium<\/span>
Difficulty: Low<\/span>
Recommendation: upgrade to Bitcoin SV 0.1.1<\/span><\/p>\n\n\n\n

It\u2019s currently possible for a malicious remote host to send an arbitrary number of p2p messages with invalid checksums, wasting the victim node\u2019s CPU and network resources. This activity is not classified as a misbehaving node, and will never result in an IP ban. The remote host can send these messages unsolicited, without waiting for a protocol session to be initiated by the victim via its peer discovery process.<\/span><\/p>\n\n\n\n

Exploit Scenario<\/b><\/h5>\n\n\n\n

A malicious node intentionally generates and sends messages with invalid checksums, and consumes both network resources (available TCP ports, network bandwidth) and CPU time (to compute the SHA256 hash of the message payload, in \u200b GetMessageHash\u200b ) of the victim node.<\/span><\/p>\n\n\n\n

The impact of such a resource consumption attack appears to be limited only by the throughput of the network connection between the attacker and the victim. The Bitcoin SV software itself implements various DoS mitigations\u200b, but those do not include any rate-limiting on traffic from a peer. In the worst-case scenario of resource consumption, the attacker would be able to prevent the victim from mining.<\/span><\/p>\n\n\n\n

The vector for exploiting this vulnerability is any p2p connection to or from the node. Bitcoin nodes usually make outbound p2p network connections to other nodes and also accept inbound p2p connections from any source. Either type of connection, inbound or outbound, could be a vector for an exploit of this vulnerability.<\/span><\/p>\n\n\n\n

CVE-2018-1000892 – Uncontrolled resource consumption when receiving sendheaders messages<\/span><\/h2>\n\n\n\n

Impact of vulnerability: Denial of Service<\/span>
Severity: Medium<\/span>
Difficulty: Low<\/span>
Recommendation: upgrade to Bitcoin SV 0.1.1<\/span><\/p>\n\n\n\n

A Bitcoin SV node will accept up to 64KB of messages at a time from another node. This is enough space to deliver a sequence of 2739 \u200b sendheaders\u200b messages, which require only 24 bytes and have, by definition, a zero-length body. Receiving 2739 null-sized \u200b sendheaders messages keeps the victim node busy for a while, since nodes are expected to announce new blocks by sending the header of the new block along with any other blocks that it believes a peer might need.<\/span><\/p>\n\n\n\n

Exploit Scenario<\/b><\/h5>\n\n\n\n

A malicious node intentionally floods a victim node with empty \u200b sendheader\u200b messages, and consumes both network resources (available TCP ports, network bandwidth) and CPU time (message processing) of the victim node. The attack can be sent repeatedly because there is currently no logic to detect this behavior or ban a node for sending too many sendheaders\u200b messages.<\/span><\/p>\n\n\n\n

The impact of such a resource consumption attack appears to be limited only by the throughput of the network connection between the attacker and the victim. The Bitcoin SV software itself implements various DoS mitigations\u200b, but those do not include any rate-limiting on traffic from a peer. In the worst-case scenario of resource consumption, the attacker would be able to prevent the victim from mining.<\/span><\/p>\n\n\n\n

The vector for exploiting this vulnerability is any p2p connection to or from the node. Bitcoin nodes usually make outbound p2p network connections to other nodes and also accept inbound p2p connections from any source. Either type of connection, inbound or outbound, could be a vector for an exploit of this vulnerability.<\/span><\/p>\n\n\n\n

CVE-2018-1000893 – Uncontrolled resource consumption when deserializing transactions<\/span><\/h2>\n\n\n\n

Impact of vulnerability: Denial of Service<\/span>
Severity: Medium<\/span>
Difficulty: Low<\/span>
Recommendation: upgrade to Bitcoin SV 0.1.1<\/span><\/p>\n\n\n\n

A specially crafted message with a falsified value in its size field causes Bitcoin SV to allocate and create a massive amount of CTxOut\u200b objects when the message is deserialized.<\/span><\/p>\n\n\n\n

Exploit Scenario<\/b><\/h5>\n\n\n\n

A malicious peer sends a message that has a valid header, but when deserialized, reports a size field of 33,554,432 (the maximum number). This wastes a significant (and asymmetric) amount of the victim node\u2019s memory and CPU time. This condition causes an exception to be thrown, but does not cause the sender to be classified as a misbehaving peer. The attacking node will not be banned, and can repeat the attack with additional malicious messages.<\/span><\/p>\n\n\n\n

In the worst-case scenario, the attacked would be able to prevent the victim from performing any useful work, including the distribution of transactions or blocks, or even mining.<\/span><\/p>\n\n\n\n

The vector for exploiting this vulnerability is any p2p connection to or from the node. Bitcoin nodes usually make outbound p2p network connections to other nodes and also accept inbound p2p connections from any source. Either type of connection, inbound or outbound, could be a vector for an exploit of this vulnerability.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

As part of its commitment to professionalise the Bitcoin development process, the Bitcoin SV Node implementation team engaged the services of Trail of Bits, a leading cybersecurity research company with expertise in blockchain technologies, to perform a security audit of the Bitcoin SV Node implementation source code. Three of the vulnerabilities that were discovered by […]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[73],"tags":[],"lang":"en","translations":{"en":2587},"yoast_head":"\nDenial of Service Vulnerabilities Repaired in Bitcoin SV version 0.1.1 - 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\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Denial of Service Vulnerabilities Repaired in Bitcoin SV version 0.1.1 - Bitcoin SV\" \/>\n<meta property=\"og:description\" content=\"As part of its commitment to professionalise the Bitcoin development process, the Bitcoin SV Node implementation team engaged the services of Trail of Bits, a leading cybersecurity research company with expertise in blockchain technologies, to perform a security audit of the Bitcoin SV Node implementation source code. Three of the vulnerabilities that were discovered by […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Bitcoin SV\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-01T08:00:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-28T05:58:25+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\":\"WebPage\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/#webpage\",\"url\":\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/\",\"name\":\"Denial of Service Vulnerabilities Repaired in Bitcoin SV version 0.1.1 - Bitcoin SV\",\"isPartOf\":{\"@id\":\"https:\/\/bitcoinsv.io\/#website\"},\"datePublished\":\"2019-03-01T08:00:16+00:00\",\"dateModified\":\"2020-09-28T05:58:25+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/#webpage\"},\"author\":{\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/8253693a6102e119a4bcb9f806cf2a5d\"},\"headline\":\"Denial of Service Vulnerabilities Repaired in Bitcoin SV version 0.1.1\",\"datePublished\":\"2019-03-01T08:00:16+00:00\",\"dateModified\":\"2020-09-28T05:58:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/stag.bitcoinsv.io\/2019\/03\/01\/denial-of-service-vulnerabilities-repaired-in-bitcoin-sv-version-0-1-1\/#webpage\"},\"publisher\":{\"@id\":\"https:\/\/bitcoinsv.io\/#organization\"},\"articleSection\":\"Articles\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/bitcoinsv.io\/#\/schema\/person\/8253693a6102e119a4bcb9f806cf2a5d\",\"name\":\"Jimmy Nguyen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bitcoinsv.io\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Jimmy Nguyen\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2587"}],"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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/comments?post=2587"}],"version-history":[{"count":2,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2587\/revisions"}],"predecessor-version":[{"id":4234,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/posts\/2587\/revisions\/4234"}],"wp:attachment":[{"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/media?parent=2587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/categories?post=2587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinsv.io\/wp-json\/wp\/v2\/tags?post=2587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}