Visible to the public Osiris: Hunting for Integer Bugs in Ethereum Smart Contracts

TitleOsiris: Hunting for Integer Bugs in Ethereum Smart Contracts
Publication TypeConference Paper
Year of Publication2018
AuthorsTorres, Christof Ferreira, Schütte, Julian, State, Radu
Conference NameProceedings of the 34th Annual Computer Security Applications Conference
PublisherACM
ISBN Number978-1-4503-6569-7
Keywordscomposability, ethereum, integer bugs, Metrics, pubcrawl, smart contracts, symbolic execution, taint analysis
Abstract

The capability of executing so-called smart contracts in a decentralised manner is one of the compelling features of modern blockchains. Smart contracts are fully fledged programs which cannot be changed once deployed to the blockchain. They typically implement the business logic of distributed apps and carry billions of dollars worth of coins. In that respect, it is imperative that smart contracts are correct and have no vulnerabilities or bugs. However, research has identified different classes of vulnerabilities in smart contracts, some of which led to prominent multi-million dollar fraud cases. In this paper we focus on vulnerabilities related to integer bugs, a class of bugs that is particularly difficult to avoid due to some characteristics of the Ethereum Virtual Machine and the Solidity programming language. In this paper we introduce Osiris - a framework that combines symbolic execution and taint analysis, in order to accurately find integer bugs in Ethereum smart contracts. Osiris detects a greater range of bugs than existing tools, while providing a better specificity of its detection. We have evaluated its performance on a large experimental dataset containing more than 1.2 million smart contracts. We found that 42,108 contracts contain integer bugs. Besides being able to identify several vulnerabilities that have been reported in the past few months, we were also able to identify a yet unknown critical vulnerability in a couple of smart contracts that are currently deployed on the Ethereum blockchain.

URLhttps://dl.acm.org/doi/10.1145/3274694.3274737
DOIhttps://doi.org/10.1145/3274694.3274737
Citation Keytorres_osiris:_2018