paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Exploiting the laws of order in smart contracts

利用智能合约中的顺序规律
ISSTA Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis2019匹配度 3/10 · 论文属于程序分析与动态符号执行/偏序归约在智能合约事件排序漏洞检测中的应用,与用户核心关注的“静态分析/形式化验证与 LLM/Agent 交叉、浮点程序分析、贝叶斯程序分析”没有直接关联;仅在程序分析方法和并发分析层面有一般性参考价值。引用 16 inbox
Aashish Kolluri, Ivica Nikolic, Ilya Sergey, Aquinas Hobor, Prateek Saxena
crossref: 2026-09-12

AI 速览

一句话:提出 EthRacer,用偏序归约与动态符号执行检测以太坊智能合约的事件排序漏洞。

本文研究区块链智能合约中的事件排序(EO)漏洞:合约函数调用的动态顺序可被利用以窃取加密资产。已有方法只能检测涉及一两个事件顺序的简单模式。作者将长事件排列中的 EO 漏洞重新表述为并发程序分析问题,并首次引入偏序归约,结合自动提取的 happens-before 关系与动态符号执行优化,缓解路径和状态空间组合爆炸。实现工具 EthRacer,直接分析以太坊字节码且无需用户提示。在超过 10,000 个合约上标记约 8%,生成紧凑事件轨迹供人工审查;其中过半可能具有非预期行为。

问题
智能合约中由函数调用动态排序引发的事件排序(EO)漏洞可导致加密资产被利用,且已有技术只能覆盖一两个事件顺序的情形。
方法
将 EO 漏洞检测形式化为并发程序分析问题,利用自动提取的 happens-before 关系和偏序归约,并结合动态符号执行优化,直接在以太坊字节码上分析。
评估
实现 EthRacer 并在超过 10,000 个以太坊合约上评估,标记约 8% 的合约,生成紧凑见证轨迹,人工审查发现过半可能具有非预期行为。
原文摘要(Abstract)

We investigate a family of bugs in blockchain-based smart contracts, which we dub event-ordering (or EO) bugs. These bugs are intimately related to the dynamic ordering of contract events, i.e. calls of its functions, and enable potential exploits of millions of USD worth of crypto-coins. Previous techniques to detect EO bugs have been restricted to those bugs that involve just one or two event orderings. Our work provides a new formulation of the general class of EO bugs arising in long permutations of such events by using techniques from concurrent program analysis. The technical challenge in detecting EO bugs in blockchain contracts is the inherent combinatorial blowup in path and state space analysis, even for simple contracts. We propose the first use of partial-order reduction techniques, using automatically extracted happens-before relations along with several dynamic symbolic execution optimizations. We build EthRacer, an automatic analysis tool that runs directly on Ethereum bytecode and requires no hints from users. It flags 8% of over 10, 000 contracts analyzed, providing compact event traces (witnesses) that human analysts can examine in only a few minutes per contract. More than half of the flagged contracts are likely to have unintended behaviour.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5363,
  title = {Exploiting the laws of order in smart contracts},
  author = {Aashish Kolluri and Ivica Nikolic and Ilya Sergey and Aquinas Hobor and Prateek Saxena},
  booktitle = {ISSTA},
  year = {2019},
  doi = {10.1145/3293882.3330560}
}