ReJection: A AST-Based Reentrancy Vulnerability Detection Method

Rui Ma, Zefeng Jian, Guangyuan Chen, Ke Ma*, Yujia Chen

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

9 引用 (Scopus)

摘要

Blockchain is deeply integrated into the vertical industry, and gradually forms an application ecosphere of blockchain in various industries. However, the security incidents of blockchain occur frequently, and especially smart contracts have become the badly-disastered area. So avoiding security incidents caused by smart contracts has become an essential topic for blockchain developing. Up to now, there is not generic method for the security auditing of smart contracts and most researchers have to use existing vulnerability detection technology. To reduce the high false rate of smart contract vulnerability detection, we use ReJection, a detection method based on abstract syntax tree (AST), to focus on the reentrancy vulnerability with obvious harm and features in smart contracts. ReJection consists of four steps. Firstly, ReJection obtains the AST corresponding to the contract by the smart contract compiler solc. Then, AST is preprocessed to eliminate redundant information. Thirdly, ReJection traverses the nodes of the AST and records the notations related to reentrancy vulnerabilities during the traversal, such as Danger-Transfer function, Checks-Effects-Interactions pattern and mutex mechanism. Finally, ReJection uses record information and predefined rules to determine whether the reentrancy vulnerability is occurred. ReJection is implemented based on Slither, which is an open-source smart contract vulnerability detection tool. Furthermore, we also use the open-source smart contract code as the test program to compare experimental results to verify the effects with the ReJection and Slither. The result highlights that the ReJection has higher detection accuracy for reentrancy vulnerability.

源语言英语
主期刊名Trusted Computing and Information Security - 13th Chinese Conference, CTCIS 2019, Revised Selected Papers
编辑Weili Han, Liehuang Zhu, Fei Yan
出版商Springer
58-71
页数14
ISBN(印刷版)9789811534171
DOI
出版状态已出版 - 2020
活动13th Chinese Conference on Trusted Computing and Information Security, CTCIS 2019 - Shanghai, 中国
期限: 24 10月 201927 10月 2019

出版系列

姓名Communications in Computer and Information Science
1149 CCIS
ISSN(印刷版)1865-0929
ISSN(电子版)1865-0937

会议

会议13th Chinese Conference on Trusted Computing and Information Security, CTCIS 2019
国家/地区中国
Shanghai
时期24/10/1927/10/19

指纹

探究 'ReJection: A AST-Based Reentrancy Vulnerability Detection Method' 的科研主题。它们共同构成独一无二的指纹。

引用此