openzeppelin contracts完整性检查值验证不恰当漏洞(CVE-2023-34459)

admin 2023-11-29 23:02:39 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 openzeppelin contracts完整性检查值验证不恰当漏洞(CVE-2023-34459)

CVE编号

CVE-2023-34459

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-06-17
漏洞描述
OpenZeppelin Contracts is a library for smart contract development. Starting in version 4.7.0 and prior to version 4.9.2, when the `verifyMultiProof`, `verifyMultiProofCalldata`, `procesprocessMultiProof`, or `processMultiProofCalldat` functions are in use, it is possible to construct merkle trees that allow forging a valid multiproof for an arbitrary set of leaves. A contract may be vulnerable if it uses multiproofs for verification and the merkle tree that is processed includes a node with value 0 at depth 1 (just under the root). This could happen inadvertedly for balanced trees with 3 leaves or less, if the leaves are not hashed. This could happen deliberately if a malicious tree builder includes such a node in the tree. A contract is not vulnerable if it uses single-leaf proving (`verify`, `verifyCalldata`, `processProof`, or `processProofCalldata`), or if it uses multiproofs with a known tree that has hashed leaves. Standard merkle trees produced or validated with the @openzeppelin/merkle-tree library are safe. The problem has been patched in version 4.9.2. Some workarounds are available. For those using multiproofs: When constructing merkle trees hash the leaves and do not insert empty nodes in your trees. Using the @openzeppelin/merkle-tree package eliminates this issue. Do not accept user-provided merkle roots without reconstructing at least the first level of the tree. Verify the merkle tree structure by reconstructing it from the leaves.
解决建议
"将组件 @openzeppelin/contracts-upgradeable 升级至 4.9.2 及以上版本""将组件 @openzeppelin/contracts 升级至 4.9.2 及以上版本"
参考链接
https://github.com/OpenZeppelin/openzeppelin-contracts/commit/4d2383e17186be3...
https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.2
https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GH...
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 openzeppelin contracts * From (including) 4.7.0 Up to (excluding) 4.9.2
运行在以下环境
应用 openzeppelin contracts_upgradeable * From (including) 4.7.0 Up to (excluding) 4.9.2
阿里云评分 5.4
  • 攻击路径 本地
  • 攻击复杂度 困难
  • 权限要求 管控权限
  • 影响范围 有限影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-354 完整性检查值验证不恰当
- 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