Front-running Attack in Distributed Sharded Ledgers and Fair Cross-shard Consensus

06/09/2023
by   Jianting Zhang, et al.
0

Sharding is a prominent technique for scaling blockchains. By dividing the network into smaller components known as shards, a sharded blockchain can process transactions in parallel without introducing inconsistencies through the coordination of intra-shard and cross-shard consensus protocols. However, we observe a critical security issue with sharded systems: transaction ordering manipulations can occur when coordinating intra-shard and cross-shard consensus protocols, leaving the system vulnerable to attack. Specifically, we identify a novel security issue known as finalization fairness, which can be exploited through a front-running attack. This attack allows an attacker to manipulate the execution order of transactions, even if the victim's transaction has already been processed and added to the blockchain by a fair intra-shard consensus. To address the issue, we offer Haechi, a novel cross-shard protocol that is immune to front-running attacks. Haechi introduces an ordering phase between transaction processing and execution, ensuring that the execution order of transactions is the same as the processing order and achieving finalization fairness. To accommodate different consensus speeds among shards, Haechi incorporates a finalization fairness algorithm to achieve a globally fair order with minimal performance loss. By providing a global order, Haechi ensures strong consistency among shards, enabling better parallelism in handling conflicting transactions across shards. These features make Haechi a promising solution for supporting popular smart contracts in the real world. To evaluate Haechi's performance, we implemented the protocol using Tendermint and conducted extensive experiments on a geo-distributed AWS environment. Our results demonstrate that Haechi achieves finalization fairness with little performance sacrifice compared to existing cross-shard consensus protocols.

READ FULL TEXT
research
07/16/2020

Wendy, the Good Little Fairness Widget

The advent of decentralized trading markets introduces a number of new c...
research
05/09/2023

A Fair and Resilient Decentralized Clock Network for Transaction Ordering

Traditional blockchain design gives miners or validators full control ov...
research
07/27/2021

RingBFT: Resilient Consensus over Sharded Ring Topology

The recent surge in federated data-management applications has brought f...
research
04/05/2023

Fair Ordering via Social Choice Theory

Control of the ordering of transactions in modern blockchains can be ext...
research
10/04/2022

OrderlessChain: Do Permissioned Blockchains Need Total Global Order of Transactions?

Existing permissioned blockchains often rely on coordination-based conse...
research
06/27/2023

Condorcet Attack Against Fair Transaction Ordering

We introduce the Condorcet attack, a new threat to fair transaction orde...
research
07/22/2021

Qanaat: A Scalable Multi-Enterprise Permissioned Blockchain System with Confidentiality Guarantees

Today's large-scale data management systems need to address distributed ...

Please sign up or login with your details

Forgot password? Click here to reset