paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Detecting and Validating Read-Only Reentrancy-Induced Price Manipulation via Learned Contract Semantics

基于学习所得合约语义的只读重入价格操纵检测与验证
FSE Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering2026匹配度 3/10 · 论文将静态分析与机器学习结合用于智能合约只读重入漏洞检测,属于程序分析与安全交叉方向,但并非用户核心关注的对 ML/Agentic 程序做静态分析、用 LLM/Agent 改进分析/验证、浮点程序分析或贝叶斯程序分析,其 ML 方法也不是当前强 LLM/Agent 工具。引用 0 inbox
Divya Rathore, Kartik Nagar
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 RoRacle,结合静态分析与机器学习学习合约语义,自动检测并验证只读重入引发的价格操纵漏洞。

只读重入(Read-Only Reentrancy, RoR)是智能合约中新兴的一类漏洞:攻击者利用合约 view 函数中的瞬时状态不一致,静默地操纵 DeFi 合约的价格预言机。本文提出自动化框架 RoRacle,用于检测并验证可被利用的 RoR 价格操纵漏洞。该框架分三步:首先在一组合约上做静态分析,识别跨合约的读/写依赖,从而定位脆弱函数;随后用基于机器学习的方法,通过在随机输入上采样来学习这些脆弱函数精确的数学语义;最后在所学的语义模型上合成使收益最大化的攻击。每一个利用都会在分叉链上被具体执行验证,产出可直接运行的漏洞利用证明(proof-of-exploit)。

问题
只读重入漏洞允许攻击者利用合约 view 函数中的瞬时状态不一致,在 DeFi 场景中静默操纵价格预言机,而现有手段难以自动检测并确认其可被实际利用。
方法
RoRacle 先用静态分析识别跨合约读写依赖以定位脆弱函数,再用机器学习在随机采样输入上学习这些函数的精确数学语义,最后基于所学模型合成收益最大化的攻击。
评估
对每个合成出的利用在分叉链上做具体执行验证,生成可直接运行的漏洞利用证明;摘要未报告具体数据集或量化指标。
原文摘要(Abstract)

Read-Only Reentrancy (RoR) is an emerging vulnerability in smart contracts (SC) that allows an attacker to exploit transient state inconsistencies in a contract's view functions to silently manipulate price oracles in DeFi SCs. We present RoRacle, an automated framework that detects and validates exploitable RoR-induced price manipulation vulnerabilities. RoRacle first detects vulnerable functions in a group of SCs by performing static analysis to identify cross-contract read/write (RW) dependencies. It then uses an ML-based approach to learn the precise mathematical semantics of vulnerable functions by sampling over randomized inputs. Finally, it synthesizes an attack to maximize profit using the learned model. Every exploit is concretely validated on a forked chain, producing execution-ready proof-of-exploits.

链接与引用

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

BibTeX
@inproceedings{RathoreN26,
  title = {Detecting and Validating Read-Only Reentrancy-Induced Price Manipulation via Learned Contract Semantics},
  author = {Divya Rathore and Kartik Nagar},
  booktitle = {FSE},
  year = {2026},
  doi = {10.1145/3803437.3807390}
}