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

我的RPC响应可靠吗?在以太坊区块链客户端中检测RPC错误

Is My RPC Response Reliable? Detecting RPC Bugs in Ethereum Blockchain Client under Context

Sun Yat-sen University(中山大学);Zhejiang University(浙江大学)

Zhijie Zhong, Yuhong Nan, Mingxi Ye, Qing Xue, Jiashui Wang, Xinlei Ying, Long Liu, Zibin Zheng

AI总结:

EthCRAFT通过生成上下文感知的RPC调用,发现更多以太坊客户端中的RPC错误,并推动了三个漏洞赏金的发放。

摘要:

区块链客户端是运行区块链节点的基础软件。它们为用户提供各种RPC(远程过程调用)接口来与区块链交互。这些RPC方法应遵循相同的规范,跨不同区块链节点提供无缝交互。然而,持续有各种RPC错误被报告,可能导致意外响应甚至拒绝服务漏洞。现有研究主要集中在生成RPC方法调用以测试区块链客户端。然而,大量报告的RPC错误是在各种区块链上下文中触发的。据我们所知,很少有人关注生成适当的上下文来触发这些依赖上下文的RPC错误。\n在本工作中,我们提出了EthCRAFT,一种面向客户端RPC错误检测的上下文感知RPC分析和模糊工具。EthCRAFT首先提出探索区块链客户端的状态转换程序空间,生成各种交易以构建上下文。EthCRAFT然后设计了一种上下文感知的RPC方法调用生成方法,向区块链客户端发送RPC调用。使用5种不同客户端实现的响应作为交叉参照的或acles来检测RPC错误。我们对收集自以太坊客户端实现GitHub问题的现实RPC错误进行了评估。实验结果表明,EthCRAFT在检测更多RPC错误方面优于现有客户端RPC检测器。此外,EthCRAFT在主要的以太坊客户端中发现了六个新错误,并向开发者报告。其中一个错误修复已被写入客户端更新的breaking changes中。我们的三个错误报告已由以太坊基金会提供了漏洞赏金。

英文摘要:

Blockchain clients are fundamental software for running blockchain nodes. They provide users with various RPC (Remote Procedure Call) interfaces to interact with the blockchain. These RPC methods are expected to follow the same specification across different blockchain nodes, providing users with seamless interaction. However, there have been continuous reports on various RPC bugs that can cause unexpected responses or even Denial of Service weakness. Existing studies on blockchain RPC bug detection mainly focus on generating the RPC method calls for testing blockchain clients. However, a wide range of the reported RPC bugs are triggered in various blockchain contexts. To the best of our knowledge, little attention is paid to generating proper contexts that can trigger these context-dependent RPC bugs. In this work, we propose EthCRAFT, a Context-aware RPC Analysis and Fuzzing Tool for client RPC bug detection. EthCRAFT first proposes to explore the state transition program space of blockchain clients and generate various transactions to construct the context. EthCRAFT then designs a context-aware RPC method call generation method to send RPC calls to the blockchain clients. The responses of 5 different client implementations are used as cross-referring oracles to detect the RPC bugs. We evaluate EthCRAFT on real-world RPC bugs collected from the GitHub issues of Ethereum client implementations. Experiment results show that EthCRAFT outperforms existing client RPC detectors by detecting more RPC bugs. Moreover, EthCRAFT has found six new bugs in major Ethereum clients and reported them to the developers. One of the bug fixes has been written into breaking changes in the client's updates. Three of our bug reports have been offered a vulnerability bounty by the Ethereum Foundation.

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

↑