Lune

NDSS2024Top-tier venue

Front-running Attack in Sharded Blockchains and Fair Cross-shard Consensus

Jianting Zhang, Wuhui Chen, Sifu Luo, Tiantian Gong, Zicong Hong, Aniket Kate

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Optimal Sharding for Scalable Blockchains with Deconstructed SMR cites A Secure Sharding Protocol For Open Blockchains
  • Optimal Sharding for Scalable Blockchains with Deconstructed SMR cites OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
  • Optimal Sharding for Scalable Blockchains with Deconstructed SMR cites Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead
  • Optimal Sharding for Scalable Blockchains with Deconstructed SMR cites RapidChain: Scaling Blockchain via Full Sharding
  • OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding cites A Secure Sharding Protocol For Open Blockchains
  • Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead cites A Secure Sharding Protocol For Open Blockchains
  • Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead cites OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
  • Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead cites RapidChain: Scaling Blockchain via Full Sharding
  • Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding cites A Secure Sharding Protocol For Open Blockchains
  • Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding cites OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
  • Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding cites RapidChain: Scaling Blockchain via Full Sharding
  • Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead cites A Secure Sharding Protocol For Open Blockchains
  • Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead cites OmniLedger: A Secure, Scale-Out, Decentralized Ledger via Sharding
  • Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead cites Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized Overhead
  • Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead cites Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered Sharding
  • Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard Overhead cites RapidChain: Scaling Blockchain via Full Sharding
  • Quantifying Blockchain Extractable Value: How dark is the forest? cites Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus Instability
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Optimal Sharding for Scalable Blockchains with Deconstructed SMRJianting Zhang, Zhongtang Luo, Raghavendra Ramesh, Aniket KateVLDB 2025 · 7 citations
  2. Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized OverheadYizhong Liu, Andi Liu, Yuan Lu, Zhuocheng Pan et al.NDSS 2025
  3. Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered ShardingChunjiang Che, Songze Li, Xuechao WangNDSS 2025
  4. Does Finality Gadget Finalize Your Block? A Case Study of Binance ConsensusRujia Li, Jingyuan Ding, Qin Wang, Keting Jia et al.USENIX Security 2025
  5. Logos: Robust Sharding Blockchain With Fast Processing and Optimal Cross-Shard OverheadYizhong Liu, Boyu Zhao, Yuxuan Hu, Haojun Tan et al.USENIX Security 2026

Builds on21

  1. A Secure Sharding Protocol For Open BlockchainsLoi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja et al.CCS 2016 · 1,392 citations
  2. OmniLedger: A Secure, Scale-Out, Decentralized Ledger via ShardingEleftherios Kokoris-Kogias, Philipp Jovanovic, Linus Gasser, Nicolas Gailly et al.S&P 2018 · 1,145 citations
  3. RapidChain: Scaling Blockchain via Full ShardingMahdi Zamani, Mahnush Movahedi, Mariana RaykovaCCS 2018 · 1,084 citations
  4. Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus InstabilityPhilip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li et al.S&P 2020 · 607 citations
  5. Quantifying Blockchain Extractable Value: How dark is the forest?Kaihua Qin, Liyi Zhou, Arthur GervaisS&P 2022 · 336 citations

Related papers

  1. Separation is Good: A Faster Order-Fairness Byzantine ConsensusKe Mu, Bo Yin, Alia Asheralieva, Xuetao WeiNDSS 2024
  2. LightCross: Sharding with Lightweight Cross-Shard Execution for Smart ContractsXiaodong Qi, Yi LiINFOCOM 2024 · 22 citations
  3. CoChain: High Concurrency Blockchain Sharding via Consensus on ConsensusMingzhe Li, You Lin, Jin Zhang, Wei WangINFOCOM 2023 · 42 citations
  4. Sharon: Secure and Efficient Cross-shard Transaction Processing via Shard RotationShan Jiang, Jiannong Cao, Cheung Leong Tung, Yuqin Wang et al.INFOCOM 2024 · 22 citations
  5. Prophet: Conflict-Free Sharding Blockchain via Byzantine-Tolerant Deterministic OrderingZicong Hong, Song Guo, Enyuan Zhou, Jianting Zhang et al.INFOCOM 2023 · 40 citations
Dusk over the sea between two cliffs drawn in fine vertical lines