GitHub Advisoryadvisory · Go
GHSA-f854-hpxv-cw9r Drainage of FeeCollector's Block Transaction Fees in cronos
HIGH
Official page ↗
- Aliases
- CVE-2021-43839
- Ecosystem
- Go
- Packages
- github.com/crypto-org-chain/cronos, github.com/tharsis/ethermint, github.com/tharsis/evmos
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-670
- Reviewed
- 2022-01-04
Affected packages
• Go github.com/crypto-org-chain/cronos: < 0.6.5 → fixed in 0.6.5
• Go github.com/tharsis/ethermint: >= 0.8.0, < 0.10.0 → fixed in 0.10.0
• Go github.com/tharsis/evmos: <= 0.4.2 (no fix yet)
• Go github.com/tharsis/ethermint: < 0.7.3 → fixed in 0.7.3
Description
Impact
In Cronos nodes running versions before v0.6.5, it is possible to take transaction fees from Cosmos SDK's FeeCollector for the current block by sending a custom crafted MsgEthereumTx.
User funds and balances are safe.
Patches
This problem has been patched in Cronos v0.6.5 on the mempool level.
The next network upgrade with consensus-breaking changes will patch it on the consensus level.
Workarounds
There are no tested workarounds. All validator node operators are recommended to upgrade to Cronos v0.6.5 at their earliest possible convenience.
Credits
Thank you to @zb3 for reporting this issue on Cronos Immunefi Bug Bounty Program, to @cyril-crypto for reproducing the issue and to @yihuang and @thomas-nguy for patching the issue on the CheckTx (mempool) and the DeliverTx (consensus) levels.
For more information
If you have any questions or comments about this advisory:
• Open a discussion in crypto-org-chain/cronos
• Email us at [email protected]
Related
Alias · CVE (1)
- CVE-2021-43839 Cronos is a commercial implementation of a blockchain. vulnerability
Weakness · CWE (1)
- CWE-670 Always-Incorrect Control Flow Implementation weakness
References
- https://github.com/crypto-org-chain/cronos/security/advisories/GHSA-f854-hpxv-cw9r web
- https://nvd.nist.gov/vuln/detail/CVE-2021-43839 advisory
- https://github.com/crypto-org-chain/cronos/pull/270 web
- https://github.com/crypto-org-chain/cronos/commit/150ef237b37ac28c8136e1c0f494932860b9ebe8 web
- https://github.com/crypto-org-chain/cronos web