在烟雾中运行-使用静态资源分析防止以太坊智能合约中的气体漏洞
Running on Fumes--Preventing Out-of-Gas Vulnerabilities in Ethereum Smart Contracts using Static Resource Analysis
摘要:
Gas是计算工作量的测量单位,它将执行参与以太坊区块链平台的每一个操作。以太坊虚拟机(EVM)执行的每条指令都有以太坊指定的相关gas消耗。如果一个事务超过了用户分配的gas数量(称为gas limit),就会引发out-of-gas异常。有一个广泛的家庭的合同漏洞,由于气体的行为。我们报告了GASTAP的设计和实现,Gas-Aware智能合约分析平台,它以智能合约作为输入(无论是在EVM中,分解的EVM中,还是在Solidity源代码中),并自动推断其所有公共函数的声音气体上限。我们的边界确保,如果用户支付的天然气限额高于我们推断的天然气限额,则合同没有天然气不足的漏洞。
英文摘要:
Gas is a measurement unit of the computational effort that it will take to execute every single operation that takes part in the Ethereum blockchain platform. Each instruction executed by the Ethereum Virtual Machine (EVM) has an associated gas consumption specified by Ethereum. If a transaction exceeds the amount of gas allotted by the user (known as gas limit), an out-of-gas exception is raised. There is a wide family of contract vulnerabilities due to out-of-gas behaviours. We report on the design and implementation of GASTAP, a Gas-Aware Smart contracT Analysis Platform, which takes as input a smart contract (either in EVM, disassembled EVM, or in Solidity source code) and automatically infers sound gas upper bounds for all its public functions. Our bounds ensure that if the gas limit paid by the user is higher than our inferred gas bounds, the contract is free of out-of-gas vulnerabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。