Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1nd2o1LXdwNnItNXE5Zs4AAt8B
Cronos vulnerable to DoS through unintended Contract Selfdestruct
In Cronos nodes running versions before v0.7.0, the contract selfdestruct invocation permanently removes the corresponding bytecode from the internal database storage. However, due to a bug in Ethermint, all contracts that used the identical bytecode (i.e shared the same CodeHash) will also stop working once one contract invokes selfdestruct, even though the other contracts did not invoke the selfdestruct OPCODE. Thanks to the successfully coordinated security vulnerability disclosure, no smart contracts were impacted through the use of this vulnerability. Smart contract states and storage values are not affected by this vulnerability. This problem has been patched in Cronos v0.8.0. The patch has state machine-breaking changes and the required coordinated network upgrade was done on the block height 3982500 on the Cronos mainnet beta network. If a contract is subject to DoS due to this issue, the user can redeploy the same contract, i.e with identical bytecode, so that the original contract's code is recovered.
Permalink: https://github.com/advisories/GHSA-gwj5-wp6r-5q9fJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1nd2o1LXdwNnItNXE5Zs4AAt8B
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: about 1 year ago
CVSS Score: 8.2
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Identifiers: GHSA-gwj5-wp6r-5q9f
References:
- https://github.com/crypto-org-chain/cronos/security/advisories/GHSA-gwj5-wp6r-5q9f
- https://nvd.nist.gov/vuln/detail/CVE-2022-35936
- https://github.com/crypto-org-chain/cronos/commit/2f2cc88b501b47149690fdef05afbbbe5bc116c9
- https://github.com/advisories/GHSA-gwj5-wp6r-5q9f
Blast Radius: 3.9
Affected Packages
go:github.com/crypto-org-chain/cronos
Dependent packages: 7Dependent repositories: 3
Downloads:
Affected Version Ranges: <= 0.7.0
Fixed in: 0.8.0
All affected versions: 0.5.1, 0.5.2, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.6.11, 0.7.0
All unaffected versions: 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15