PT-2024-31557 · Unknown · Cairo-Contracts

Ggonzalez94

·

Published

2024-08-30

·

Updated

2024-09-19

·

CVE-2024-45304

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions Cairo-Contracts versions prior to 0.16.0
Description This issue 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.
Recommendations For versions prior to 0.16.0, upgrade to release version 0.16.0 to address this issue. As a temporary workaround, consider restricting access to the contract to minimize the risk of exploitation. There are no known workarounds for this vulnerability, and all users are advised to upgrade to the latest version.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-45304
GHSA-W2PX-25PM-2CF9

Affected Products

Cairo-Contracts