Journal of Applied Sciences ›› 2021, Vol. 39 ›› Issue (1): 151-163.doi: 10.3969/j.issn.0255-8297.2021.01.013

• Blockchain • Previous Articles    

Analysis of Security Strategies for Smart Contracts Based on Ethereum

ZHANG Dengji1, ZHAO Xiangfu2, CHEN Zhongyu1, TONG Xiangrong2   

  1. 1. College of Mathematics and Computer Science, Zhejiang Normal University, Jinhua 321004, Zhejiang, China;
    2. School of Computer and Control Engineering, Yantai University, Yantai 264005, Shandong, China
  • Received:2020-11-12 Published:2021-02-04

Abstract: A smart contract is a collection of code and data. Once a smart contract is deployed, it cannot be changed. Smart contracts have financial properties, thus, it would cause huge losses if there were vulnerabilities in smart contracts. Therefore, it is essential to write safe and reliable smart contracts. Based on the Ethereum platform, related security of smart contracts is analyzed, and several common vulnerabilities are summarized, including reentrancy vulnerabilities, integer overflow vulnerabilities, deny of service (DoS) vulnerabilities, timestamp dependence vulnerabilities, and transaction-ordering dependence vulnerabilities. We made theoretical analysis in detail and scenario recurrence on these vulnerabilities, proposed corresponding preventive security strategies, and verified the effectiveness of these strategies. Finally, we analyzed and compared several popular tools for detecting smart contract vulnerabilities.

Key words: blockchain, Ethereum, smart contract, vulnerability analysis, prevention strategy

CLC Number: