中危 openzeppelin contracts对输出编码和转义不恰当漏洞(CVE-2023-40014)
CVE编号
CVE-2023-40014利用情况
暂无补丁情况
官方补丁披露时间
2023-08-11漏洞描述
OpenZeppelin Contracts is a library for secure smart contract development. Starting in version 4.0.0 and prior to version 4.9.3, contracts using `ERC2771Context` along with a custom trusted forwarder may see `_msgSender` return `address(0)` in calls that originate from the forwarder with calldata shorter than 20 bytes. This combination of circumstances does not appear to be common, in particular it is not the case for `MinimalForwarder` from OpenZeppelin Contracts, or any deployed forwarder the team is aware of, given that the signer address is appended to all calls that originate from these forwarders. The problem has been patched in v4.9.3.解决建议
"将组件 @openzeppelin/contracts 升级至 4.9.3 及以上版本""将组件 @openzeppelin/contracts-upgradeable 升级至 4.9.3 及以上版本"受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | openzeppelin | openzeppelin_contracts | * | From (including) 4.0.0 | Up to (excluding) 4.9.3 | ||||
运行在以下环境 | |||||||||
应用 | openzeppelin | openzeppelin_contracts-upgradable | * | From (including) 4.0.0 | Up to (excluding) 4.9.3 |
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 管控权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-116 | 对输出编码和转义不恰当 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论