PT-2023-19311 · Openzeppelin · Openzeppelin Contracts For Cairo
Martriay
·
Published
2023-02-02
·
Updated
2023-02-13
·
CVE-2023-23940
CVSS v3.1
6.4
Medium
| Vector | AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L |
Name of the Vulnerable Software and Affected Versions
OpenZeppelin Contracts for Cairo versions prior to 0.6.1
Description
The issue is related to the
is valid eth signature function missing a call to finalize keccak after calling verify eth signature. This allows a malicious sequencer to bypass signature validation and impersonate accounts using the EthAccount preset. The risk of exploitation is reduced since only StarkWare currently runs both a prover and a sequencer.Recommendations
For versions prior to 0.6.1, update to version 0.6.1 to resolve the issue. As a temporary workaround, consider restricting access to the
is valid eth signature function until the update is applied. Additionally, be cautious of potential malicious sequencer activity and monitor for any unusual account impersonation attempts.Exploit
Fix
Insufficient Verification of Data Authenticity
Improper Verification of Cryptographic Signature
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Openzeppelin Contracts For Cairo