中危 agoric ses CVE-2023-39532漏洞(CVE-2023-39532)
CVE编号
CVE-2023-39532利用情况
暂无补丁情况
官方补丁披露时间
2023-08-09漏洞描述
SES is a JavaScript environment that allows safe execution of arbitrary programs in Compartments. In version 0.18.0 prior to 0.18.7, 0.17.0 prior to 0.17.1, 0.16.0 prior to 0.16.1, 0.15.0 prior to 0.15.24, 0.14.0 prior to 0.14.5, an 0.13.0 prior to 0.13.5, there is a hole in the confinement of guest applications under SES that may manifest as either the ability to exfiltrate information or execute arbitrary code depending on the configuration and implementation of the surrounding host. Guest program running inside a Compartment with as few as no endowments can gain access to the surrounding host’s dynamic import by using dynamic import after the spread operator, like `{...import(arbitraryModuleSpecifier)}`. On the web or in web extensions, a Content-Security-Policy following ordinary best practices likely mitigates both the risk of exfiltration and execution of arbitrary code, at least limiting the modules that the attacker can import to those that are already part of the application. However, without a Content-Security-Policy, dynamic import can be used to issue HTTP requests for either communication through the URL or for the execution of code reachable from that origin. Within an XS worker, an attacker can use the host’s module system to the extent that the host has been configured. This typically only allows access to module code on the host’s file system and is of limited use to an attacker. Within Node.js, the attacker gains access to Node.js’s module system. Importing the powerful builtins is not useful except insofar as there are side-effects and tempered because dynamic import returns a promise. Spreading a promise into an object renders the promises useless. However, Node.js allows importing data URLs, so this is a clear path to arbitrary execution. Versions 0.18.7, 0.17.1, 0.16.1, 0.15.24, 0.14.5, and 0.13.5 contain a patch for this issue. Some workarounds are available. On the web, providing a suitably constrained Content-Security-Policy mitigates most of the threat. With XS, building a binary that lacks the ability to load modules at runtime mitigates the entirety of the threat. That will look like an implementation of `fxFindModule` in a file like `xsPlatform.c` that calls `fxRejectModuleFile`.解决建议
"将组件 ses 升级至 0.16.1 及以上版本""将组件 ses 升级至 0.18.7 及以上版本""将组件 ses 升级至 0.14.5 及以上版本""将组件 ses 升级至 0.17.1 及以上版本""将组件 ses 升级至 0.13.5 及以上版本""将组件 ses 升级至 0.15.24 及以上版本"
参考链接 |
|
---|---|
https://github.com/endojs/endo/commit/fc90c6429604dc79ce8e3355e236ccce2bada041 | |
https://github.com/endojs/endo/security/advisories/GHSA-9c4h-3f7h-322r |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | agoric | ses | * | From (including) 0.13.0 | Up to (excluding) 0.13.5 | ||||
运行在以下环境 | |||||||||
应用 | agoric | ses | * | From (including) 0.14.0 | Up to (excluding) 0.14.5 | ||||
运行在以下环境 | |||||||||
应用 | agoric | ses | * | From (including) 0.15.0 | Up to (excluding) 0.15.24 | ||||
运行在以下环境 | |||||||||
应用 | agoric | ses | * | From (including) 0.18.0 | Up to (excluding) 0.18.7 | ||||
运行在以下环境 | |||||||||
应用 | agoric | ses | 0.16.0 | - | |||||
运行在以下环境 | |||||||||
应用 | agoric | ses | 0.17.0 | - |
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-20 | 输入验证不恰当 |
NVD-CWE-noinfo |
Exp相关链接

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