中危 nodejs undici 输出中的特殊元素转义处理不恰当(注入)
CVE编号
CVE-2022-35948利用情况
暂无补丁情况
官方补丁披露时间
2022-08-15漏洞描述
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< [email protected]` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | nodejs | undici | * | Up to (excluding) 5.8.2 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | node-undici | * | Up to (excluding) 5.8.2+dfsg1+~cs18.9.18.1-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | node-undici | * | Up to (excluding) 5.8.2+dfsg1+~cs18.9.18.1-1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | nodejs16-docs | * | Up to (excluding) 16.17.0-150300.7.9.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | nodejs16-docs | * | Up to (excluding) 16.17.0-150400.3.6.1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-74 | 输出中的特殊元素转义处理不恰当(注入) |
CWE-93 | 对CRLF序列的转义处理不恰当(CRLF注入) |
NVD-CWE-Other |
Exp相关链接

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