Skip to main content
QUICK REVIEW

[Paper Review] Detecting Standard Violation Errors in Smart Contracts

Ao Li, Fan Long|arXiv (Cornell University)|Dec 18, 2018
Blockchain Technology Applications and SecurityComputer Science17 references9 citations
TL;DR

Solar is a symbolic execution tool that detects standard violation errors in Ethereum smart contracts by verifying compliance with technical standards like ERC-20 and ERC-721. It analyzes EVM bytecode, uses SMT solvers to check for violations of user-defined invariants, and found 255 zero-day errors in 197 contracts with only three false positives.

ABSTRACT

We present SOLAR, a new analysis tool for automatically detecting standard violation errors in Ethereum smart contracts.Given the Ethereum Virtual Machine (EVM) bytecode of a smart contract and a user specified constraint or invariant derived from a technical standard such as ERC-20,SOLAR symbolically executes the contract, explores all possible execution paths, and checks whether it is possible to initiate a sequence of malicious transactions to violate the specified constraint or invariant. Our experimental results highlight the effectiveness of SOLAR in finding new errors in smart con-tracts. Out of the evaluated 779 ERC-20 and 310 ERC-721smart contracts, SOLAR found 255 standard violation errors in 197 vulnerable contracts with only three false positives.237 out of the 255 errors are zero-day errors that are not re-ported before. Our results sound the alarm on the prevalence of standard violation errors in critical smart contracts that manipulate publicly traded digital assets

Motivation & Objective

  • To address the prevalence of logic and standard compliance errors in smart contracts despite existing security analysis tools.
  • To detect deviations from technical standards such as ERC-20 and ERC-721 that do not trigger low-level runtime errors.
  • To reduce false positives by focusing exclusively on violations of specified invariants and constraints derived from standards.
  • To enable analysis of EVM bytecode directly without requiring source code access.
  • To provide a scalable, precise method for identifying critical logic flaws in smart contracts managing digital assets.

Proposed method

  • Solar symbolically executes EVM bytecode while modeling contract behavior as a state machine driven by external transactions.
  • It uses an optimized symbolic execution engine that accurately handles EVM storage access instructions, including those paired with cryptographic hash operations.
  • The tool integrates an SMT solver to determine whether any initial state and transaction input sequence can violate user-specified invariants or constraints derived from standards.
  • It supports user-defined constraints and invariants based on technical standards like ERC-20 and ERC-721, enabling consistent validation across compliant contracts.
  • Solar generates detailed error reports, including the initial contract state and transaction sequence that trigger a standard violation.
  • It is designed to work directly on EVM bytecode, avoiding reliance on source code and enabling analysis of deployed contracts.

Experimental results

Research questions

  • RQ1Can a symbolic execution-based tool effectively detect logic-level deviations from technical standards in Ethereum smart contracts without relying on source code?
  • RQ2How effective is such a tool in identifying zero-day standard violation errors compared to existing tools that focus on low-level runtime vulnerabilities?
  • RQ3To what extent do real-world smart contracts, especially those managing digital assets, deviate from their intended standard specifications?
  • RQ4Can symbolic execution with SMT solving be optimized to handle EVM-specific storage operations efficiently and accurately?
  • RQ5How do the false positive rates of standard-compliance checking tools compare to those of traditional vulnerability detectors?

Key findings

  • Solar detected 255 standard violation errors across 197 unique smart contracts from the 779 evaluated ERC-20 and 310 evaluated ERC-721 contracts.
  • Of the 255 errors, 237 were zero-day vulnerabilities not previously reported, highlighting the prevalence of undetected logic flaws.
  • The tool reported only three false positives across all evaluations, demonstrating high precision in identifying actual standard violations.
  • The results indicate that standard violation errors are widespread even in critical smart contracts managing publicly traded digital assets.
  • Solar outperformed existing tools in detecting logic-level errors with significantly fewer false positives by focusing on standard compliance rather than low-level runtime issues.
  • The study reveals that many contracts conforming to standards like ERC-20 and ERC-721 still contain implementation-level deviations that can lead to financial loss.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.