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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
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 | |||||
- 攻击路径 网络
- 攻击复杂度 高
- 权限要求 无
- 影响范围 未更改
- 用户交互 无
- 可用性 无
- 保密性 高
- 完整性 无
CWE-ID | 漏洞类型 |
CWE-22 | 对路径名的限制不恰当(路径遍历) |
Exp相关链接

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