Skip to main content
QUICK REVIEW

[Paper Review] All roads lead to Rome: Many ways to double spend your cryptocurrency

Zhiniang Peng, Yuki Chen|arXiv (Cornell University)|Nov 16, 2018
Blockchain Technology Applications and SecurityComputer Science4 references3 citations
TL;DR

This paper identifies multiple novel double-spend attack vectors in major blockchain platforms like EOS and NEO, beyond the well-known 51% attacks. It proposes a lightweight, general-purpose mitigation technique that verifies the consistency of database write sequences across virtual machine executions to prevent forks caused by inconsistent state transitions, significantly improving security with minimal performance overhead.

ABSTRACT

In 2008, Satoshi Nakamoto proposed an electronic cash system (bitcoin) that is completely realized by peer-to-peer technology. The core value of this scheme is that it proposes a solution based on Proof-of Work, so that the cash system can run in a peer-to-peer environment and be able to prevent double-spend attacks. Bitcoin has been developed for ten years, and since then countless digital currencies have been created. But the discussion of double-spend attacks seems to still concentrate on 51% Attacks. In fact, our research has found that there are many other way to achieve double-spend attacks. In this paper, by introducing a number of double-spend attack vulnerabilities that we have found in EOS, NEO and other large blockchain platforms, we summarized various reasons for causing double-spend attacks, and propose an efficient mitigation measure against them.

Motivation & Objective

  • To identify and classify previously overlooked double-spend attack vectors in major blockchain platforms such as EOS and NEO.
  • To analyze the root causes of double-spend attacks beyond 51% attacks, including insufficient verification, inconsistent state machine execution, and consensus flaws.
  • To propose a general, efficient mitigation technique to prevent double-spends arising from virtual machine execution inconsistencies.
  • To improve blockchain security by addressing implementation-level vulnerabilities that lead to fork-based double-spending.

Proposed method

  • The paper categorizes double-spend attacks into three types: insufficient verification, inconsistent state machine execution, and consensus mechanism flaws.
  • It introduces a write-sequence verification mechanism where block producers hash the sequence of database write operations from transactions in a block.
  • Lightweight verification is performed by ordinary nodes: they record the local write sequence from transaction execution and compare its hash with the one in the block.
  • If the hashes do not match, the block is rejected, preventing forks due to inconsistent VM execution.
  • The method is designed to be efficient and compatible with any underlying data structure, avoiding the high cost of hashing the full global state.
  • The approach leverages the fact that double-spending fundamentally alters the global state through write operations, so verifying the write sequence ensures consistency.

Experimental results

Research questions

  • RQ1What are the primary causes of double-spend attacks in modern blockchain platforms beyond 51% attacks?
  • RQ2How can inconsistent execution of smart contract virtual machines lead to double-spending vulnerabilities?
  • RQ3What are the practical implications of consensus mechanism flaws such as those in dBFT and VRF in NEO?
  • RQ4Can a general-purpose, low-overhead mitigation technique be designed to detect and prevent double-spends caused by VM inconsistency?
  • RQ5How effective is write-sequence verification in preventing double-spends without imposing high computational costs?

Key findings

  • The authors discovered multiple double-spend vulnerabilities in EOS and NEO, including issues in transaction verification, VRF implementation, and dBFT consensus logic.
  • A critical flaw in NEO's VRF implementation allowed an attacker to generate a fixed VRF output, enabling long-term control of block production.
  • A fork vulnerability in the dBFT consensus mechanism of NEO and ONT allowed malicious nodes to create conflicting blocks, enabling double-spending.
  • The proposed write-sequence verification method effectively detects inconsistent VM execution with minimal performance overhead, as it only requires hashing the sequence of write operations.
  • The method is universally applicable to any blockchain using a state machine model, regardless of the underlying data structure.
  • All identified vulnerabilities were responsibly disclosed and patched by the respective teams, with the researchers receiving over $300,000 in bug bounties.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.