CometBFT 可能会在内存池的数据结构中复制交易 (CVE-2023-34451)

admin 2023-11-29 22:52:25 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 CometBFT 可能会在内存池的数据结构中复制交易 (CVE-2023-34451)

CVE编号

CVE-2023-34451

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-07-04
漏洞描述
CometBFT is a Byzantine Fault Tolerant (BFT) middleware that takes a state transition machine and replicates it on many machines. The mempool maintains two data structures to keep track of outstanding transactions: a list and a map. These two data structures are supposed to be in sync all the time in the sense that the map tracks the index (if any) of the transaction in the list. In `v0.37.0`, and `v0.37.1`, as well as in `v0.34.28`, and all previous releases of the CometBFT repo2, it is possible to have them out of sync. When this happens, the list may contain several copies of the same transaction. Because the map tracks a single index, it is then no longer possible to remove all the copies of the transaction from the list. This happens even if the duplicated transaction is later committed in a block. The only way to remove the transaction is by restarting the node. The above problem can be repeated on and on until a sizable number of transactions are stuck in the mempool, in order to try to bring down the target node. The problem is fixed in releases `v0.34.29` and `v0.37.2`. Some workarounds are available. Increasing the value of `cache_size` in `config.toml` makes it very difficult to effectively attack a full node. Not exposing the transaction submission RPC's would mitigate the probability of a successful attack, as the attacker would then have to create a modified (byzantine) full node to be able to perform the attack via p2p.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/cometbft/cometbft/pull/890
https://github.com/cometbft/cometbft/security/advisories/GHSA-w24w-wp77-qffm
https://github.com/tendermint/tendermint/pull/2778
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 cometbft cometbft * From (including) 0.34.28 Up to (excluding) 0.34.29
运行在以下环境
应用 cometbft cometbft * From (including) 0.37.0 Up to (excluding) 0.37.2
阿里云评分 6.0
  • 攻击路径 远程
  • 攻击复杂度 复杂
  • 权限要求 普通权限
  • 影响范围 全局影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-401 在移除最后引用时对内存的释放不恰当(内存泄露)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0