Journal of System Simulation ›› 2022, Vol. 34 ›› Issue (7): 1629-1638.doi: 10.16182/j.issn1004731x.joss.21-0208

• VV&A Technology • Previous Articles     Next Articles

Verification of Transaction Ordering Dependence Vulnerability of Smart Contract Based on CPN

Hong Zheng(), Zerun Liu, Jianhua Huang, Shihui Qian   

  1. School of Information Science and Engineering, East China University of Science and Technology, Shanghai 200237, China
  • Received:2021-03-15 Revised:2021-04-26 Online:2022-07-30 Published:2022-07-20

Abstract:

The formal verification of smart contracts researches mainly focus on programming language-level vulnerabilities, and the transaction ordering dependence is more difficult to be detected as a blockchain-level vulnerability.The latent transaction ordering dependence vulnerability in smart contracts is formally verified based on colored Petri nets.The latent vulnerability in the Decode reward contractis analyzed, anda colored Petri net model of the contract itself and its execution environment is established from top to bottom.The attacker model is introduced to consider the situation that the contract is attacked. By running the model to verify the existence of transaction ordering dependence vulnerability in the contract,thecorrectness of the conclusion is finally verified in the Ethereum network based on Remix platform.

Key words: blockchain, smart contract, colored Petri nets, formal verification, transaction ordering dependence vulnerability

CLC Number: