Revealing Hidden Threats: An Empirical Study of Library Misuse in Smart Contracts

计算机科学 坚固性 审计 万维网 智能合约 计算机安全 业务 会计 块链 程序设计语言
作者
Mingyuan Huang,Jiachi Chen,Zigui Jiang,Zibin Zheng
标识
DOI:10.1145/3597503.3623335
摘要

Smart contracts are Turing-complete programs that execute on the blockchain. Developers can implement complex contracts, such as auctions and lending, on Ethereum using the Solidity programming language. As an object-oriented language, Solidity provides libraries within its syntax to facilitate code reusability and reduce development complexity. Library misuse refers to the incorrect writing or usage of libraries, resulting in unexpected results, such as introducing vulnerabilities during library development or incorporating an unsafe library during contract development. Library misuse could lead to contract defects that cause financial losses. Currently, there is a lack of research on library misuse. To fill this gap, we collected more than 500 audit reports from the official websites of five audit companies and 223,336 real-world smart contracts from Etherscan to measure library popularity and library misuse. Then, we defined eight general patterns for library misuse; three of them occurring during library development and five during library utilization, which covers the entire library lifecycle. To validate the practicality of these patterns, we manually analyzed 1,018 real-world smart contracts and publicized our dataset. We identified 905 misuse cases across 456 contracts, indicating that library misuse is a widespread issue. Three patterns of misuse are found in more than 50 contracts, primarily due to developers lacking security awareness or underestimating negative impacts. Additionally, our research revealed that vulnerable libraries on Ethereum continue to be employed even after they have been deprecated or patched. Our findings can assist contract developers in preventing library misuse and ensuring the safe use of libraries.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
星辰大海应助Levi采纳,获得10
刚刚
繁木发布了新的文献求助20
刚刚
刚刚
向阳花开完成签到 ,获得积分10
1秒前
搞怪藏今完成签到,获得积分10
1秒前
1秒前
1秒前
1秒前
科目三应助时光机带哥走采纳,获得10
1秒前
1秒前
1秒前
1秒前
1秒前
1秒前
1秒前
2秒前
哇咔咔完成签到,获得积分20
2秒前
3秒前
Ava应助zhengbiaoying采纳,获得10
3秒前
苗条的语海完成签到,获得积分10
3秒前
3秒前
StoneT完成签到,获得积分10
3秒前
3秒前
3秒前
chen完成签到,获得积分10
3秒前
袁寒烟发布了新的文献求助10
3秒前
haoyun完成签到,获得积分10
3秒前
酷波er应助陈晓旭采纳,获得10
4秒前
4秒前
Kevin完成签到,获得积分10
4秒前
隐形曼青应助研友_LmVygn采纳,获得10
4秒前
Criminology34应助鸽子采纳,获得10
4秒前
爆米花应助DrX采纳,获得10
5秒前
雪花飞完成签到,获得积分10
5秒前
pojian完成签到,获得积分10
5秒前
nightmare完成签到,获得积分10
5秒前
搜集达人应助自觉冷松采纳,获得10
5秒前
5秒前
小美发布了新的文献求助10
6秒前
6秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
晶种分解过程与铝酸钠溶液混合强度关系的探讨 8888
Les Mantodea de Guyane Insecta, Polyneoptera 2000
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
Signals, Systems, and Signal Processing 610
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6422508
求助须知:如何正确求助?哪些是违规求助? 8241324
关于积分的说明 17517690
捐赠科研通 5476557
什么是DOI,文献DOI怎么找? 2892890
邀请新用户注册赠送积分活动 1869344
关于科研通互助平台的介绍 1706751