aiohttp.web.static(follow_symlinks=True) 容易受到目录遍历的攻击 (CVE-2024-23334)

admin 2024-02-01 09:18:32 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
aiohttp.web.static(follow_symlinks=True) 容易受到目录遍历的攻击 (CVE-2024-23334)

CVE编号

CVE-2024-23334

利用情况

暂无

补丁情况

N/A

披露时间

2024-01-30
漏洞描述
aiohttp is an asynchronous HTTP client/server framework for asyncio and Python. When using aiohttp as a web server and configuring static routes, it is necessary to specify the root path for static files. Additionally, the option 'follow_symlinks' can be used to determine whether to follow symbolic links outside the static root directory. When 'follow_symlinks' is set to True, there is no validation to check if reading a file is within the root directory. This can lead to directory traversal vulnerabilities, resulting in unauthorized access to arbitrary files on the system, even when symlinks are not present. Disabling follow_symlinks and using a reverse proxy are encouraged mitigations. Version 3.9.2 fixes this issue.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/aio-libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b
https://github.com/aio-libs/aiohttp/pull/8079
https://github.com/aio-libs/aiohttp/security/advisories/GHSA-5h86-8mv2-jq9f
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 fedora_38 python-aiohttp * Up to (excluding) 3.9.3-1.fc38
运行在以下环境
系统 fedora_39 python-aiohttp * Up to (excluding) 3.9.3-1.fc39
运行在以下环境
系统 fedora_EPEL_8 python-aiohttp * Up to (excluding) 3.7.4-2.el8
运行在以下环境
系统 fedora_EPEL_9 python-aiohttp * Up to (excluding) 3.9.3-1.el9
CVSS3评分 5.9
  • 攻击路径 网络
  • 攻击复杂度 高
  • 权限要求 无
  • 影响范围 未更改
  • 用户交互 无
  • 可用性 无
  • 保密性 高
  • 完整性 无
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-ID 漏洞类型
CWE-22 对路径名的限制不恰当(路径遍历)
- 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