CVE-2023-23940Insufficient Verification of Data Authenticity in Contracts

Severity
5.3MEDIUMNVD
EPSS
0.1%
top 82.31%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 3

Description

OpenZeppelin Contracts for Cairo is a library for secure smart contract development written in Cairo for StarkNet, a decentralized ZK Rollup. `is_valid_eth_signature` is missing a call to `finalize_keccak` after calling `verify_eth_signature`. As a result, any contract using `is_valid_eth_signature` from the account library (such as the `EthAccount` preset) is vulnerable to a malicious sequencer. Specifically, the malicious sequencer would be able to bypass signature validation to impersonate an

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NExploitability: 1.6 | Impact: 3.6

Affected Packages2 packages

CVEListV5openzeppelin/cairo-contracts>= 0.2.0, < 0.6.1
NVDopenzeppelin/contracts0.2.00.6.1

Patches

🔴Vulnerability Details

3
OSV
CVE-2023-23940: OpenZeppelin Contracts for Cairo is a library for secure smart contract development written in Cairo for StarkNet, a decentralized ZK Rollup2023-02-03
GHSA
OpenZeppelin Contracts contains Improper Verification of Cryptographic Signature2023-02-02
OSV
OpenZeppelin Contracts contains Improper Verification of Cryptographic Signature2023-02-02