CVE-2024-45304: OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership in cairo-contracts
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45304?
CVE-2024-45304 is classified as a critical vulnerability due to the potential for unauthorized ownership transfer.
How do I fix CVE-2024-45304?
To fix CVE-2024-45304, update the OpenZeppelin Cairo Contracts to version 0.16.0 or later.
What software is affected by CVE-2024-45304?
CVE-2024-45304 affects OpenZeppelin Contracts version 0.16.0 and earlier.
What is the risk associated with CVE-2024-45304?
The risk associated with CVE-2024-45304 includes unauthorized ownership transfer, compromising contract security.
When was CVE-2024-45304 disclosed?
CVE-2024-45304 was disclosed in 2024, highlighting severe security implications for users of the affected contracts.