Skip to main content
← All vulnerabilities
CVE-2024-45304

OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.16.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Cairo-Contracts are OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup. This vulnerability can lead to unauthorized ownership transfer, contrary to the original owner's intention of leaving the contract without an owner. It introduces a security risk where an unintended party (pending owner) can gain control of the contract after the original owner has renounced ownership. This could also be used by a malicious owner to simulate leaving a contract without an owner, to later regain ownership by previously having proposed himself as a pending owner. This issue has been addressed in release version 0.16.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • OpenZeppelin cairo-contracts

    fixed in 0.16.0

References 3

GitHub · OpenZeppelin/cairo-contracts