arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.02997cs.CR
收藏

TokenHook:安全的ERC-20智能合约

TokenHook: Secure ERC-20 smart contract

Reza Rahimian, Jeremy Clark

摘要:

ERC-20是可替代代币的最重要的以太坊标准。实现ERC-20接口的令牌可以与大量已经部署的基于互联网的服务和基于以太坊的智能合约进行互操作。近年来,ERC-20中的安全漏洞因其广泛使用和价值增加而受到特别关注。我们系统化了这些漏洞及其对ERC-20令牌的适用性,这在以前是没有的。接下来,我们利用我们的领域专业知识来提供ERC-20接口的新实现,该接口在Vyper和Solidity中免费提供,与ERC-20规范中唯一幸存的参考实现(来自OpenZeppelin)相比,它具有增强的安全属性和更强的最佳实践合规性。最后,我们使用我们的实现来研究为一般智能合约设计的七个静态分析工具的有效性,以识别ERC-20特定的漏洞。我们发现这些工具之间存在很大的不一致性和大量的误报,这表明这些工具还有进一步改进的空间。

英文摘要:

ERC-20 is the most prominent Ethereum standard for fungible tokens. Tokens implementing the ERC-20 interface can interoperate with a large number of already deployed internet-based services and Ethereum-based smart contracts. In recent years, security vulnerabilities in ERC-20 have received special attention due to their widespread use and increased value. We systemize these vulnerabilities and their applicability to ERC-20 tokens, which has not been done before. Next, we use our domain expertise to provide a new implementation of the ERC-20 interface that is freely available in Vyper and Solidity, and has enhanced security properties and stronger compliance with best practices compared to the sole surviving reference implementation (from OpenZeppelin) in the ERC-20 specification. Finally, we use our implementation to study the effectiveness of seven static analysis tools, designed for general smart contracts, for identifying ERC-20 specific vulnerabilities. We find large inconsistencies across the tools and a high number of false positives which shows there is room for further improvement of these tools.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑