SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static Analysis

Author:

Liao Zeqin1ORCID,Nan Yuhong1ORCID,Liang Henglong2ORCID,Hao Sicheng1ORCID,Zhai Juan3ORCID,Wu Jiajing1ORCID,Zheng Zibin4ORCID

Affiliation:

1. Sun Yat-sen University, Zhuhai, China

2. Sun Yat-sen University, Guangzhou, China

3. University of Massachusetts, Amherst, Amherst, USA

4. Sun Yat-sen University, Zhuhai, China / GuangDong Engineering Technology Research Center of Blockchain, Zhuhai, China

Abstract

With the increasing popularity of blockchain, different blockchain platforms coexist in the ecosystem (e.g., Ethereum, BNB, EOSIO, etc.), which prompts the high demand for cross-chain communication. Cross-chain bridge is a specific type of decentralized application for asset exchange across different blockchain platforms. Securing the smart contracts of cross-chain bridges is in urgent need, as there are a number of recent security incidents with heavy financial losses caused by vulnerabilities in bridge smart contracts, as we call them Cross-Chain Vulnerabilities (CCVs). However, automatically identifying CCVs in smart contracts poses several unique challenges. Particularly, it is non-trivial to (1) identify application-specific access control constraints needed for cross-bridge asset exchange, and (2) identify inconsistent cross-chain semantics between the two sides of the bridge. In this paper, we propose SmartAxe, a new framework to identify vulnerabilities in cross-chain bridge smart contracts. Particularly, to locate vulnerable functions that have access control incompleteness, SmartAxe models the heterogeneous implementations of access control and finds necessary security checks in smart contracts through probabilistic pattern inference. Besides, SmartAxe constructs cross-chain control-flow graph (xCFG) and data-flow graph (xDFG), which help to find semantic inconsistency during cross-chain data communication. To evaluate SmartAxe, we collect and label a dataset of 88 CCVs from real-attacks cross-chain bridge contracts. Evaluation results show that SmartAxe achieves a precision of 84.95% and a recall of 89.77%. In addition, SmartAxe successfully identifies 232 new/unknown CCVs from 129 real-world cross-chain bridge applications (i.e., from 1,703 smart contracts). These identified CCVs affect a total amount of digital assets worth 1,885,250 USD

Publisher

Association for Computing Machinery (ACM)

Reference44 articles.

1. AceDroid: Normalizing Diverse Android Access Control Checks for Inconsistency Detection

2. Rob Behnke. 2022. The nomad bridge hack: a deeper dive. https://www.halborn.com/blog/post/the-nomad-bridge-hack-a-deeper-dive [Accessed 20-Sep-2023]

3. Binance. 2022. BNB Chain. https://www.bnbchain.org/ [Accessed 20-Sep-2023]

4. Bitcoin. 2009. Bitcoin. https://bitcoin.org/ [Accessed 20-Sep-2023]

5. SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3