CVE-2023-23940
Summary
| CVE | CVE-2023-23940 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-02-03 20:15:00 UTC |
| Updated | 2023-11-07 04:08:00 UTC |
| 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 instance of these accounts. The issue has been patched in 0.6.1. |
Risk And Classification
Problem Types: CWE-347
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Openzeppelin | Contracts | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| EthAccount can be impersonated by malicious prover · Advisory · OpenZeppelin/cairo-contracts · GitHub | MISC | github.com | |
| Add finalize_keccak to is_valid_eth_signature by andrew-fleming · Pull Request #542 · OpenZeppelin/cairo-contracts · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.