TokenAuditor: Detecting Manipulation Risk in Token Smart Contract by Fuzzing

Mingpei Cao,Yueze Zhang,Zhenxuan Feng,Jiahao Hu,Yuesheng Zhu
DOI: https://doi.org/10.1109/qrs57517.2022.00071
2022-01-01
Abstract:Decentralized cryptocurrencies are influential smart contract applications in the blockchain, drawing interest from industry and academia. The capacity to govern and manage token behavior provided by the token smart contract adds to thriving decentralized applications. However, token smart contracts face security challenges in technology weakness and manipulation risks. In this work, we briefly describe the manipulation risk and propose TokenAuditor, a fuzzing framework detecting those risks in token smart contracts. TokenAuditor constructs basic blocks based on the contract bytecodes and adopts the rarity selection and mutation strategy to generate test cases. The main idea is to select the test cases that have hit rare basic blocks since the fuzzing started as candidates and perform mutation operations on them. In our evaluation, TokenAudiotr discovered 664 manipulation risks of four types in 4021 real-world token contracts.
What problem does this paper attempt to address?