arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.09134cs.CRcs.SE
收藏

一个签名,多笔支付:揭秘并检测智能合约中的签名重放漏洞

One Signature, Multiple Payments: Demystifying and Detecting Signature Replay Vulnerabilities in Smart Contracts

Sun Yat-sen University(中山大学);Peng Cheng Laboratory(鹏城实验室);Zhejiang University(浙江大学);Harbin Institute of Technology(哈尔滨工业大学)

Zexu Wang, Jiachi Chen, Zewei Lin, Wenqing Chen, Kaiwen Ning, Jianxing Yu, Yuming Feng, Yu Zhang, Weizhe Zhang, Zibin Zheng

AI总结:

本文首次实证研究智能合约签名重放漏洞(SRV),从1419份审计报告识别出5种SRV类型,设计LASiR结合LLM语义理解与符号执行检测漏洞,实验显示其F1值达87.90%,且SRV在目标合约中分布广泛。

摘要:

智能合约极大推动了区块链技术的发展,而数字签名对于合约权限的可靠验证至关重要。通过签名验证,智能合约可确保签名者拥有所需权限,从而提升安全性与可扩展性。然而,若缺乏对签名使用条件的检查,会导致重复验证,增加权限滥用风险并威胁合约资产。我们将此问题定义为签名重放漏洞(SRV)。本文开展了首次实证研究,调查SRV的成因与特征。从37家区块链安全公司的1419份审计报告中,我们识别出108份包含SRV详细描述的报告,并分类出5种SRV类型。为自动检测这些漏洞,我们设计了LASiR,它利用大语言模型(LLMs)的通用语义理解能力辅助签名状态的静态污点分析,识别签名复用行为;同时通过符号执行进行路径可达性验证,确保检测的有效性与可靠性。为评估LASiR的性能,我们在15383份涉及签名验证的合约上开展了大规模实验,这些合约选自以太坊、币安智能链、Polygon和Arbitrum四大区块链的918964份初始合约数据集。结果表明,SRV分布广泛,受影响合约持有476万美元的活跃资产;其中以太坊上使用签名的合约中,19.63%存在SRV。此外,人工验证显示LASiR的检测F1值达87.90%。消融研究与对比实验表明,LLMs提供的语义信息有助于静态污点分析,显著提升了LASiR的检测性能。

英文摘要:

Smart contracts have significantly advanced blockchain technology, and digital signatures are crucial for reliable verification of contract authority. Through signature verification, smart contracts can ensure that signers possess the required permissions, thus enhancing security and scalability. However, lacking checks on signature usage conditions can lead to repeated verifications, increasing the risk of permission abuse and threatening contract assets. We define this issue as the Signature Replay Vulnerability (SRV). In this paper, we conducted the first empirical study to investigate the causes and characteristics of the SRVs. From 1,419 audit reports across 37 blockchain security companies, we identified 108 with detailed SRV descriptions and classified five types of SRVs. To detect these vulnerabilities automatically, we designed LASiR, which utilizes the general semantic understanding ability of Large Language Models (LLMs) to assist in the static taint analysis of the signature state and identify the signature reuse behavior. It also employs path reachability verification via symbolic execution to ensure effective and reliable detection. To evaluate the performance of LASiR, we conducted large-scale experiments on 15,383 contracts involving signature verification, selected from the initial dataset of 918,964 contracts across four blockchains: Ethereum, Binance Smart Chain, Polygon, and Arbitrum. The results indicate that SRVs are widespread, with affected contracts holding $4.76 million in active assets. Among these, 19.63% of contracts that use signatures on Ethereum contain SRVs. Furthermore, manual verification demonstrates that LASiR achieves an F1-score of 87.90% for detection. Ablation studies and comparative experiments reveal that the semantic information provided by LLMs aids static taint analysis, significantly enhancing LASiR's detection performance.

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

↑