Validity check for signed Frontier-specific extrinsic not called in block execution
cve-program · CVE-2021-41138
PublishedFrontier is Substrate's Ethereum compatibility layer. In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. The issue is patched in commit `146bb48849e5393004be5c88beefe76fdf009aba`.
Read the publisher's advisoryeuvd · EUVD-2021-2260
PublishedFrontier is Substrate's Ethereum compatibility layer. In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. The issue is patched in commit `146bb48849e5393004be5c88beefe76fdf009aba`.
Read the publisher's advisorynvd · CVE-2021-41138
PublishedFrontier is Substrate's Ethereum compatibility layer. In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. The issue is patched in commit `146bb48849e5393004be5c88beefe76fdf009aba`.
Read the publisher's advisoryosv · GHSA-vj62-g63v-f8mf
Published### Impact In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. ### Patches The issue is patched in commit 146bb48849e5393004be5c88beefe76fdf009aba. ### References Patch PR: https://github.com/paritytech/frontier/pull/495 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Frontier repo](https://github.com/paritytech/frontier/issues) ### Special thanks Special thanks to @librelois, @nanocryk and the Moonbeam team for reporting and fixing this security vulnerability.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2021-41138 · CVE overview and exploitation status
cve-program · CVE-2021-41138
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
euvd · EUVD-2021-2260
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
nvd · CVE-2021-41138
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
osv · GHSA-vj62-g63v-f8mf
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
- https://nvd.nist.gov/vuln/detail/CVE-2021-41138
- https://github.com/paritytech/frontier/pull/495
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/polkadot-evm/frontier
Related changes
Linked by CVE identifierNo related changes are available here.