paperbot · PL 论文追踪

全部论文 待读 收藏

P2 PrettySmart: Detecting Permission Re-delegation Vulnerability for Token Behaviors in Smart Contracts

PrettySmart:检测智能合约中代币行为的权限再委托漏洞
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 2/10 · 该论文属于静态分析/抽象解释方法(标签含“程序分析与抽象解释”),方法论上与用户的程序分析功底有交集;但其应用领域是智能合约权限再委托漏洞检测,既非 ML 系统/Agentic 程序,也未涉及 LLM、浮点程序分析或贝叶斯程序分析,与用户正在追的核心问题基本无关。引用 18 inbox
Zhijie Zhong, Zibin Zheng, Hong-Ning Dai, Qing Xue, Junjia Chen, Yuhong Nan
crossref: 2026-09-12

AI 速览

一句话:提出字节码级检测器 PrettySmart,识别可被绕过权限约束并滥用代币管理功能的权限再委托漏洞。

智能合约中的代币资产需要有效的权限策略来防止未授权用户操纵,但公开可访问函数可能被攻击者滥用,导致权限再委托(PRD)漏洞;现有研究多关注特权函数或状态变量的可达性,较少关注此类问题。本文提出 PrettySmart,一个面向智能合约字节码的 PRD 漏洞检测器。作者首先对 43 万个开源合约进行实证研究,发现五类广泛使用的权限约束覆盖了 98% 的合约;随后提出推断这些权限约束的机制,以及识别可被未授权攻击者绕过的约束的算法,并据此检测攻击者是否能操纵合约中的特权代币管理功能。真实数据集实验表明,PrettySmart 达到最高精确率,并检测出 118 个新的 PRD 漏洞。

问题
智能合约需要权限策略保护代币资产免受未授权操纵,但公开可访问函数可能被攻击者滥用,造成权限再委托(PRD)漏洞,现有工作对此关注不足。
方法
基于对 43 万个开源智能合约的实证研究,归纳五类主要权限约束,提出字节码级权限约束推断方法及绕过约束识别算法,进而检测特权代币管理功能是否可被攻击者操纵。
评估
在真实世界数据集上评估,PrettySmart 取得最高精确率,并发现 118 个新的 PRD 漏洞,验证了其有效性。
原文摘要(Abstract)

As an essential component in Ethereum and other blockchains, token assets have been interacted with by diverse smart contracts. Effective permission policies of smart contracts must prevent token assets from being manipulated by unauthorized adversaries. Recent efforts have studied the accessibility of privileged functions or state variables to unauthorized users. However, little attention is paid to how publicly accessible functions of smart contracts can be manipulated by adversaries to steal users' digital assets. This attack is mainly caused by the permission re-delegation (PRD) vulnerability. In this work, we propose PrettySmart, a bytecode-level Permission re-delegation vulnerability detector for Smart contracts. Our study begins with an empirical study on 0.43 million open-source smart contracts, revealing that five types of widely-used permission constraints dominate 98% of the studied contracts. Accordingly, we propose a mechanism to infer these permission constraints, as well as an algorithm to identify constraints that can be bypassed by unauthorized adversaries. Based on the identification of permission constraints, we propose to detect whether adversaries could manipulate the privileged token management functionalities of smart contracts. The experimental results on real-world datasets demonstrate the effectiveness of the proposed PrettySmart, which achieves the highest precision score and detects 118 new PRD vulnerabilities.

链接与引用

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

BibTeX
@inproceedings{paperbot11336,
  title = {PrettySmart: Detecting Permission Re-delegation Vulnerability for Token Behaviors in Smart Contracts},
  author = {Zhijie Zhong and Zibin Zheng and Hong-Ning Dai and Qing Xue and Junjia Chen and Yuhong Nan},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639140}
}