中危 typelevel http4s 对路径名的限制不恰当(路径遍历)
CVE编号
CVE-2021-32643利用情况
暂无补丁情况
官方补丁披露时间
2021-05-28漏洞描述
StaticFile.fromUrl can leak the presence of a directory on a server when the URL scheme is not file://, and the URL points to a fetchable resource under its scheme and authority. The function returns F[None], indicating no resource, if url.getFile is a directory, without first checking the scheme or authority of the URL. If a URL connection to the scheme and URL would return a stream, and the path in the URL exists as a directory on the server, the presence of the directory on the server could be inferred from the 404 response. The contents and other metadata about the directory are not exposed.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | typelevel | http4s | * | From (including) 0.21.7 | Up to (excluding) 0.21.24 | ||||
运行在以下环境 | |||||||||
应用 | typelevel | http4s | 0.22.0 | - | |||||
运行在以下环境 | |||||||||
应用 | typelevel | http4s | 0.23.0 | - | |||||
运行在以下环境 | |||||||||
应用 | typelevel | http4s | 1.0.0 | - |
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 管控权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-22 | 对路径名的限制不恰当(路径遍历) |
Exp相关链接

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