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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9a8d7f60-e549-4786-8883-28a7cf8a4d37Cited by top-tier papers5
- Optimal Sharding for Scalable Blockchains with Deconstructed SMRJianting Zhang, Zhongtang Luo, Raghavendra Ramesh, Aniket KateVLDB 2025 · 7 citations
- Kronos: A Secure and Generic Sharding Blockchain Consensus with Optimized OverheadYizhong Liu, Andi Liu, Yuan Lu, Zhuocheng Pan et al.NDSS 2025
- Manifoldchain: Maximizing Blockchain Throughput via Bandwidth-Clustered ShardingChunjiang Che, Songze Li, Xuechao WangNDSS 2025
- Does Finality Gadget Finalize Your Block? A Case Study of Binance ConsensusRujia Li, Jingyuan Ding, Qin Wang, Keting Jia et al.USENIX Security 2025
- 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
- A Secure Sharding Protocol For Open BlockchainsLoi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja et al.CCS 2016 · 1,392 citations
- 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
- RapidChain: Scaling Blockchain via Full ShardingMahdi Zamani, Mahnush Movahedi, Mariana RaykovaCCS 2018 · 1,084 citations
- 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
- Quantifying Blockchain Extractable Value: How dark is the forest?Kaihua Qin, Liyi Zhou, Arthur GervaisS&P 2022 · 336 citations
Related papers
- Separation is Good: A Faster Order-Fairness Byzantine ConsensusKe Mu, Bo Yin, Alia Asheralieva, Xuetao WeiNDSS 2024
- LightCross: Sharding with Lightweight Cross-Shard Execution for Smart ContractsXiaodong Qi, Yi LiINFOCOM 2024 · 22 citations
- CoChain: High Concurrency Blockchain Sharding via Consensus on ConsensusMingzhe Li, You Lin, Jin Zhang, Wei WangINFOCOM 2023 · 42 citations
- 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
- Prophet: Conflict-Free Sharding Blockchain via Byzantine-Tolerant Deterministic OrderingZicong Hong, Song Guo, Enyuan Zhou, Jianting Zhang et al.INFOCOM 2023 · 40 citations
