nodejs undici 输出中的特殊元素转义处理不恰当(注入)

admin 2023-11-30 06:25:59 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 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.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80
https://github.com/nodejs/undici/releases/tag/v5.8.2
https://github.com/nodejs/undici/security/advisories/GHSA-f772-66g8-q5h3
受影响软件情况
# 类型 厂商 产品 版本 影响面
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
阿里云评分 6.7
  • 攻击路径 远程
  • 攻击复杂度 容易
  • 权限要求 无需权限
  • 影响范围 全局影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-74 输出中的特殊元素转义处理不恰当(注入)
CWE-93 对CRLF序列的转义处理不恰当(CRLF注入)
NVD-CWE-Other
- 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