Skip to content

OwnableTwoStep allows a pending owner to accept ownership after the original owner has renounced ownership

Moderate
ggonzalez94 published GHSA-w2px-25pm-2cf9 Aug 30, 2024

Package

cairo-contracts (Cairo)

Affected versions

< 0.15.1

Patched versions

0.16.0

Description

Impact

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.

Patches

This bug has been patched in v0.16.0.

For more information

If you have any questions or comments about this advisory:

Email us at security@openzeppelin.com

Severity

Moderate

CVE ID

CVE-2024-45304

Weaknesses

No CWEs