Skip to main content
QUICK REVIEW

[Paper Review] Not so immutable: Upgradeability of Smart Contracts on Ethereum

Mehdi Salehi, Jeremy Clark|arXiv (Cornell University)|Jun 1, 2022
Blockchain Technology Applications and SecurityComputer Science5 citations
TL;DR

This paper analyzes upgradeability patterns in Ethereum smart contracts, identifying DELEGATECALL-based designs as the most prevalent. Using a novel measurement framework, the authors discover 1.4 million proxy contracts, with 50% controlled by a single externally owned account (EOA), revealing significant centralization risks in supposedly immutable smart contracts.

ABSTRACT

A smart contract that is deployed to a blockchain system like Ethereum is, under reasonable circumstances, expected to be immutable and tamper-proof. This is both a feature (promoting integrity and transparency) and a bug (preventing security patches and feature updates). Modern smart contracts use software tricks to enable upgradeability, raising the research questions of how upgradeability is achieved and who is authorized to make changes. In this paper, we summarize and evaluate six upgradeability patterns. We develop a measurement framework for finding how many upgradeable contracts are on Ethereum that use certain prominent upgrade patters. We find 1.4 million proxy contracts which 8,225 of them are unique upgradeable proxy contracts. We also measure how they implement access control over their upgradeability: about 50% are controlled by a single Externally Owned Address (EOA), and about 14% are controlled by multi-signature wallets in which a limited number of persons can change the whole logic of the contract.

Motivation & Objective

  • To understand how smart contracts on Ethereum achieve upgradeability despite the promise of immutability.
  • To classify and evaluate six prominent upgradeability patterns used in practice.
  • To measure the prevalence and access control mechanisms of upgradeable contracts on Ethereum.
  • To assess the centralization risks introduced by single-key or multi-signature admin controls.
  • To develop a generalizable measurement framework for detecting upgrade patterns beyond specific standards or libraries.

Proposed method

  • The authors design a pattern-based measurement framework to detect upgradeability patterns in Ethereum smart contracts using static analysis and bytecode pattern matching.
  • They analyze contract bytecode to identify signatures of six upgradeability patterns, including DELEGATECALL, CALL, CREATE2-based metamorphosis, and UUPS.
  • The framework detects proxy contracts and maps their admin control mechanisms, distinguishing between EOA, multi-signature wallets, and governance-based systems.
  • The authors validate their detection model using known contracts and manual inspection, adjusting for false negatives in multi-sig detection.
  • They use blockchain data from ArchiveNode to analyze contracts over a 2.06 million block period (Sep 2020–Jul 2021).
  • The study includes a case study on UUPS pattern detection, demonstrating the framework’s ability to identify vulnerable contracts at scale.

Experimental results

Research questions

  • RQ1How are upgradeability patterns implemented in real-world Ethereum smart contracts?
  • RQ2Which upgradeability patterns are most prevalent on Ethereum, and why?
  • RQ3Who holds the administrative control over upgradeable contracts, and what are the associated trust and security risks?
  • RQ4To what extent do upgradeable contracts undermine the principle of immutability in blockchain systems?
  • RQ5Can a general-purpose detection framework identify upgrade patterns without relying on specific libraries or standards?

Key findings

  • The authors identify 1.4 million proxy contracts on Ethereum, of which 8,225 are unique upgradeable proxy contracts.
  • DELEGATECALL-based patterns are the most prevalent upgradeability mechanism, favored for their simplicity and low instrumentation overhead.
  • Approximately 50% of upgradeable contracts are controlled by a single externally owned account (EOA), creating a single point of failure.
  • About 14% of contracts are governed by multi-signature wallets, where a small group of signers can alter the contract logic.
  • The remaining 29% of contracts are controlled by decentralized governance or unknown mechanisms, though manual inspection reveals false negatives in multi-sig detection.
  • The study demonstrates that upgradeability significantly undermines the core promise of immutability, with 48% of contracts vulnerable to compromise via a single private key.

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.